#! /bin/sh # PATH=/bin:/usr/bin:/sbin:/usr/sbin DAEMON=/usr/sbin/ddclient PIDFILE=/var/run/ddclient.pid # OPTION="" test -x $DAEMON || exit 0 case "$1" in start) echo -n "Starting ddclient:" start-stop-daemon --start --quiet --exec $DAEMON -- $OPTION echo "." ;; stop) echo -n "Stopping ddclient:" start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE echo "." ;; reload) echo "Not implemented." ;; force-reload|restart) sh $0 stop sh $0 start ;; *) echo "Usage: /etc/init.d/ddclient {start|stop|restart|force-reload|reload}" exit 1 ;; esac exit 0