4 PIDFILE
=/var
/run
/$NAME.pid
6 CFGFILE
=/etc
/default
/$NAME
10 # Read configuration variable file if it is present
11 if [ -f $CFGFILE ]; then
15 DAEMON_ARGS
="-i $IFACE"
18 printf "Starting $NAME: "
19 start-stop-daemon
-S -q -m -b -p $PIDFILE --exec $DAEMON -- $DAEMON_ARGS
20 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
23 printf "Stopping $NAME: "
24 start-stop-daemon
-K -q -p $PIDFILE
25 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
43 echo "Usage: $0 {start|stop|restart}"