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

I'm running debian lenny server, and I've installed git on it. Now there is a git-daemon process (and appropriate opened port), but there is no /etc/init.d/git script that I could stop. I know there is /etc/sv/git-daemon/run but that doesn't help me stopping it either.

share|improve this question
up vote 13 down vote accepted

git-daemon under Debian is managed by runit.

sv stop git-daemon

should do it.

share|improve this answer
Thanks, tried to find this, but I couldn't get good answer. – Slartibartfast May 28 '09 at 19:48

As far as I recall the git-daemon-run package should provide the /etc/init.d/git-daemon

share|improve this answer
nope, found that on google, but doesn' work – Slartibartfast May 28 '09 at 19:46

As you can see in the README.Debian you can make a symlink :

See the sv(8) program on how to manage the service, or, alternatively, create a symbolic link /etc/init.d/git-daemon pointing to /usr/bin/sv to have an LSB compatible interface to control it:

ln -s /usr/bin/sv /etc/init.d/git-daemon
/etc/init.d/git-daemon status
share|improve this answer

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.