3 # Provides: nsd-dynipwatch
4 # Required-Start: $nsd3
6 # Should-Start: $local_fs
7 # Should-Stop: $local_fs
8 # Default-Start: 2 3 4 5
10 # Short-Description: Start nsd dynip update
11 # Description: Provides an updater for NSD3 zone files
16 .
/lib
/lsb
/init-functions
18 PIDFILE
=/var
/run
/nsd-dynipwatch.pid
19 ARGS
="/etc/nsd3/sthu.org.zone euklid"
23 start-stop-daemon
--start --quiet --background --pidfile $PIDFILE --make-pidfile --exec /usr
/local
/bin
/nsd-dynipwatch
-- $ARGS
26 start-stop-daemon
--stop --quiet --pidfile $PIDFILE
29 start-stop-daemon
--stop --retry 5 --quiet --pidfile $PIDFILE
30 start-stop-daemon
--start --quiet --background --pidfile $PIDFILE --make-pidfile --exec /usr
/local
/bin
/nsd-dynipwatch
-- $ARGS
33 status_of_proc
-p $PIDFILE /usr
/local
/bin
/nsd-dynipwatch nsd-dynipwatch
&& exit 0 ||
exit $?
36 log_action_msg
"Usage: /etc/init.d/cron {start|stop|restart}"