diff -r e127de596921 -r b3cd686b8cf6 rc.dns-autoslave --- a/rc.dns-autoslave Thu Jul 14 10:03:39 2016 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,38 +0,0 @@ -#! /bin/sh - -### BEGIN INIT INFO -# Provides: dns-autoslave -# Required-Start: $local_fs $remote_fs $syslog $named $network $time -# Required-Stop: $local_fs $remote_fs $syslog $named $network -# Should-Start: -# Should-Stop: -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: Start/Stop the dns-autoslave daemon -### END INIT INFO - -DAEMON=/usr/local/sbin/dns-autoslave -PIDFILE=/var/run/`basename $DAEMON`.pid - -case $1 in - - start) - start-stop-daemon -v --start --pidfile $PIDFILE --startas $DAEMON - ;; - - stop) - start-stop-daemon -v --stop --retry 30 --pidfile $PIDFILE - ;; - - restart) echo "Restarting $NAME..." - $0 stop - $0 start - ;; - - *) - echo "Usage: $0 {start|stop|restart}" >&2 - exit 1 - ;; -esac - -exit 0