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.
git-daemon
under Debian is managed by runit.should do it.
As far as I recall the git-daemon-run package should provide the /etc/init.d/git-daemon
As you can see in the README.Debian you can make a symlink :
In Debian 11, you can stop it from coming up during bootup by editing the
/etc/default/git-daemon
and changing theGIT_DAEMON_ENABLE
to”false”
.