Hi Gerrit.
You do 'apt-get install git-daemon-run' and have a working git-daemon
service on your system. What went wrong?
[EMAIL PROTECTED]:~$ sudo apt-get install git-daemon-run
Installs without errors until the following which are obviously not
fatal but are not so nice to see:
Setting up git-daemon-run (1.4.4.4-2) ...
Warning: The home dir you specified does not exist.
Adding system user `gitlog' (UID 115) ...
Adding new user `gitlog' (UID 115) with group `nogroup' ...
Not creating home directory `/nonexistent'.
So now I check to see what's running and find nothing:
[EMAIL PROTECTED]:~$ ps fax | grep git-daemon | grep -v grep
[EMAIL PROTECTED]:~$
So I thought, maybe this package does not start git-daemon by default and
maybe I have to start it by hand:
[EMAIL PROTECTED]:~$ sudo /etc/init.d/git-daemon-run start
sudo: /etc/init.d/git-daemon-run: command not found
[EMAIL PROTECTED]:~$ sudo /etc/init.d/git-daemon start
sudo: /etc/init.d/git-daemon: command not found
[EMAIL PROTECTED]:~$ ls /etc/init.d/*git*
ls: /etc/init.d/*git*: No such file or directory
Hmm... Problem[1] is that is that my expectations for a daemon package
(which are based on my experience with *every* other daemon package) don't
apply to this package. Especially as the package description says "This
package provides a git-daemon service." But apparently not.
[EMAIL PROTECTED]:~$ ls /usr/share/doc/git-daemon-run/
changelog.Debian.gz changelog.gz copyright
Hmmm... Problem[2] No documentation specifying how this service should be
started since the "normal" /etc/init.d script doesn't exist. So I think
maybe that dependency on "runit" gives me something to look at:
[EMAIL PROTECTED]:~$ man runit
And here I find that "runit must be run as Unix process no 1." which says
(Problem[3]) to me that I need to replace /sbin/init to make runit work,
but I still have no idea how that is supposed to make git-daemon run. So I
read all the manpages that runit(8) refers to and think maybe the sv(*)
command will do what I want:
[EMAIL PROTECTED]:~$ sudo sv start git-daemon-run
fail: git-daemon-run: unable to change to service directory:
file does not exist
And here I give up. This package should not be in stable.
Of course not. You don't need to replace sysvinit, and installing the
git-daemon-run package doesn't do that. runit runs just fine under
sysvinit.
?? All indications are that this statement is wrong, but I find that
completely beside the point. Why do you not provide the same *standard*
method for starting a daemon process that every other package uses?
And to my mind the /etc/init.d/git-daemon script should be provided by
git-core since git-daemon is actually already included in that package.
Mark.
--
Mark Lawrence
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]