Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
$ ps aux | grep svn
root      **4458** ... /usr/bin/svnserve -d -r /var/svn
manuel    4466 ... grep --color=auto svn
$ sudo kill **4458**
$ sudo rm /var/run/
$ sudo start-stop-daemon --start --make-pidfile --pidfile /var/run/ --exec /usr/bin/svnserve -- -d -r /var/svn
$ cat /var/run/
$ ps aux | grep svn
root     **4477**  ... /usr/bin/svnserve -d -r /var/svn
manuel    4480     ... grep --color=auto svn

Why is start-stop-daemon saving wrong pids?

share|improve this question
What is the process behind the actual PID? – gertvdijk Dec 13 '12 at 13:22
up vote 3 down vote accepted

You used the -d flag in svnserve, which means that svnserve forks, and child processes will have different pids, than the parent svnserve process.

start-stop-daemon doesn't know about child process pids.


  • Use pid-file from svnserve to determine pid number (And remove the make-pidfile argument.)
  • Disable forking in svnserve, and configure start-stop-daemon to do this as well (there is an example on the bottom of manpage)
share|improve this answer
But where is the file? – ManuelSchneid3r Dec 13 '12 at 12:21
You need to add --pid-file parameter to svnserve command, example: start-stop-daemon --start -p /var/run/ --exec /usr/bin/svnserve -- -d -r /mnt/ --pid-file /var/run/ – Tomasz Olszewski Dec 13 '12 at 12:24
Damn. Thats what I've overlooked. svnserve itself has a --pid-file option. Thanks – ManuelSchneid3r Jan 16 '13 at 13:45

Probably because svnserve makes it's own pidfile.

share|improve this answer
oh do you know where this is or how i should handle this? – ManuelSchneid3r Dec 13 '12 at 11:45
depends on what you exactly want it to do. You can either remove the --make-pidfile and make sure the --pidfile points to the svnserve pidfile. – Jeroen Dec 13 '12 at 11:47
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. – Brent Pabst Dec 13 '12 at 13:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.