Changes

From Amahi Wiki
Jump to: navigation, search
221 bytes removed ,  12:20, 13 March 2012
DAEMON=/usr/libexec/git-core/git-daemon
ARGS<nowiki>=</nowiki>'--base-path<nowiki>=</nowiki>/var/cache/git --detach --syslog --export-all --user=git --group<nowiki>=</nowiki>git'
prog<nowiki>=</nowiki>git-daemon
start () {
# start daemon
daemon $DAEMON $ARGS
RETVAL<nowiki>=</nowiki>$?
echo
[ $RETVAL <nowiki>=</nowiki> 0 ] && touch /var/lock/git-daemon
return $RETVAL
}
echo -n $"Stopping $prog: "
killproc $DAEMON
RETVAL<nowiki>=</nowiki>$?
echo
[ $RETVAL <nowiki>=</nowiki> 0 ] && rm -f /var/lock/git-daemon
}
restart() <nowiki>{</nowiki>
stop
start
<nowiki>}</nowiki>
case $1 in
status)
status $DAEMON
RETVAL<nowiki>=</nowiki>$?
;;
*)
echo $"Usage: $prog <nowiki>{</nowiki>start<nowiki>|</nowiki>stop<nowiki>|</nowiki>restart<nowiki>|</nowiki>status<nowiki>}</nowiki>"
exit 3
esac
12,424

edits