Hi Mark,

On Thu, May 31, 2007 at 01:24:28AM +0200, Mark Lawrence wrote:
> >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:

it should have started it by default, something went wrong, I'm not sure
yet what.

>   [EMAIL PROTECTED]:~$ sudo /etc/init.d/git-daemon start
>   sudo: /etc/init.d/git-daemon: command not found

Newer version of the git-daemon-run package provide the
/etc/init.d/git-daemon interface, you're right, users are used to this.

> 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:

Ok, it's documented at the wrong place, take a look at
/usr/share/doc/git-core/README.Debian.  I'll see what I can do to
improve this.

>   [EMAIL PROTECTED]:~$ sudo sv start git-daemon-run
>   fail: git-daemon-run: unable to change to service directory:
>                         file does not exist

Please try 'apt-get install --reinstall runit', and check again whether
the git-daemon service is activated properly.  If not, please post the
output of

 # grep SV /etc/inittab
 # ls -l /proc/1/exe
 # ls -lL /proc/1/exe

Thanks, Gerrit.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to