Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.
$ 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/svnserve.pid
$ sudo start-stop-daemon --start --make-pidfile --pidfile /var/run/svnserve.pid --exec /usr/bin/svnserve -- -d -r /var/svn
$ cat /var/run/svnserve.pid
$ 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

2 Answers 2

up vote 3 down vote accepted

As you used d flag in svnserve, svnserve forks, and child process have different pid, than parent.

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


  • Use pid-file from svnserve to determine pid number (And remove make-pidfile arg)
  • Disable forking in svnserve, and configure start-stop-daemon to do this (There is an example on the bottom of manpage)
share|improve this answer
But where is the svnserve.pid 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/svnserve.pid --exec /usr/bin/svnserve -- -d -r /mnt/ --pid-file /var/run/svnserve.pid –  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.