Changed files:
git-core.init -> 1.2
fi
}
+condrestart() {
+ if [ -f /var/lock/subsys/git-daemon ]; then
+ stop
+ start
+ else
+ msg_not_running git-daemon
+ RETVAL=$1
+ fi
+}
+
RETVAL=0
# See how we were called.
case "$1" in
stop
start
;;
- reload)
- reload
+ try-restart)
+ condrestart 0
;;
-# ONLY if program allows reloading without stopping
-# otherwise include force-reload with 'reload'
- force-reload)
- reload
+ reload|force-reload)
+ reload
;;
status)
status git-daemon
RETVAL=$?
;;
*)
- msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
+ msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload|status}"
exit 3
esac