diff --git a/scripts/runbot b/scripts/runbot --- a/scripts/runbot +++ b/scripts/runbot @@ -1,7 +1,17 @@ #!/bin/sh +### BEGIN INIT INFO +# Provides: mcbot +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: IRC BOT mcbot +# Description: IRC BOT mcbot +### END INIT INFO + BINARY="mcbot" -DIRECTORY="/usr/local/sbin/" +DIRECTORY="/usr/sbin/" LANGUAGE="de_DE.UTF-8" [[ ! -x "${DIRECTORY}/${BINARY}" ]] && exit 0 @@ -48,8 +58,14 @@ stop start ;; + force-reload) + echo "Force reload stub" + stop + start + ;; + *) - echo "Usage: start|stop|restart|status" + echo "Usage: start|stop|restart|status|force-reload" ;; esac