diff options
Diffstat (limited to 'debian/init.d')
-rw-r--r-- | debian/init.d | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/debian/init.d b/debian/init.d index 2b8e364..010bef9 100644 --- a/debian/init.d +++ b/debian/init.d @@ -35,19 +35,23 @@ case "$1" in chmod 600 /etc/lcd4linux.conf start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \ --exec $DAEMON -- $DAEMON_OPTS - log_end_msg 0 + log_end_msg $? ;; stop) log_daemon_msg "Stopping $DESC" "$NAME" - start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \ - --exec $DAEMON - log_end_msg 0 + start-stop-daemon --stop --quiet --retry=TERM/15/KILL/5 \ + --pidfile /var/run/$NAME.pid --exec $DAEMON + log_end_msg $? ;; restart|force-reload) - $0 stop && sleep 2 && $0 start + $0 stop + sleep 2 + $0 start ;; status) status_of_proc $DAEMON "$NAME" + status=$? + exit $status ;; *) N=/etc/init.d/$NAME |