X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=scripts%2Fgit-daemon.init.d;h=0c6cde6e6751120e9e84ef547a34beaa5323549a;hb=a8aa1baef6f4d1df60f44d1d542912acff913226;hp=f6b6ebc4fa950cef65d74b9c74a568e6197da1c2;hpb=1d4f02f3d036fe537f84adc82ce2c39045aaf4c7;p=infrastructure.git diff --git a/scripts/git-daemon.init.d b/scripts/git-daemon.init.d index f6b6ebc..0c6cde6 100755 --- a/scripts/git-daemon.init.d +++ b/scripts/git-daemon.init.d @@ -7,6 +7,11 @@ # # processname: git-daemon # pidfile: /var/run/git.pid +# +# NOTE. on f14 at least git daemon comes linked with xinetd +# however as we had written this for f8, and as I don't feel +# comfy with xinetd on top of chkconfig, +# I turned off xinetd and still use this one on f14 as well # source function library . /etc/rc.d/init.d/functions @@ -18,7 +23,10 @@ RETVAL=0 prog="git-daemon" # Some functions to make the below more readable -GIT=/usr/bin/git-daemon +# previous location (f8) +#GIT=/usr/bin/git-daemon +# for f14 +GIT=/usr/libexec/git-core/git-daemon PID_FILE=/var/run/git-daemon.pid # override OPTIONS altogether for more flexibility @@ -29,7 +37,7 @@ runlevel=$(set -- $(runlevel); eval "echo \$$#" ) start() { echo -n $"Starting $prog: " - $(eval $GIT $OPTIONS) && success || failure + $GIT $OPTIONS && success || failure RETVAL=$? [ "$RETVAL" = 0 ] && touch /var/lock/subsys/git echo