# Based on mp_networker as created by Mike Patterson which # inturn was based on what was generated on FreeBsd # There should be NO need to edit this file. # Apparently we need to startup with the specific backup # server specified with the -s option to nsrexecd # NSREXECD=/usr/sbin/nsrexecd N=/etc/init.d/networker SERVER=backup.cs.uwaterloo.ca DEFAULT=/etc/default/networker # You can override the SERVER value in $DEFAULT test ! -r $DEFAULT || . $DEFAULT case $1 in start) if [ -x ${NSREXECD} ]; then echo -n 'Starting Networker client: ' start-stop-daemon --start --quiet --exec $NSREXECD -- -s $SERVER echo $NSREXECD fi ;; stop) echo -n "Stopping Networker client: $NSREXECD" start-stop-daemon --stop --quiet --exec $NSREXECD echo "." ;; restart) $0 stop; $0 start; ;; *) echo "Usage: $N |restart{start|stop}" >&2 exit 1 ;; esac