Changes

From Amahi Wiki
Jump to: navigation, search
153 bytes added ,  12:13, 13 March 2012
no edit summary
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
}
status)
status $DAEMON
RETVAL<nowiki>=</nowiki>$?
;;
*)
12,424

edits