3 # perlbal Start and Stop the perlbal daemon
7 # Required-Start: $local_fs $remote_fs $network $syslog
8 # Required-Stop: $local_fs $remote_fs $network $syslog
9 # Default-Start: 2 3 4 5
11 # Short-Description: Start/Stop the perlbal daemon
12 # Description: Start/Stop the perlbal daemon.
15 # PATH should only include /usr/* if it runs after the mountnfs.sh script
16 PATH
=/usr
/local
/sbin
:/usr
/local
/bin
:/sbin
:/bin
:/usr
/sbin
:/usr
/bin
17 DAEMON
=/usr
/sbin
/perlbal
20 PIDFILE
=/var
/run
/$NAME.pid
22 SCRIPTNAME
=/etc
/init.d
/$NAME
24 # Exit if the package is not installed
25 [ -x "$DAEMON" ] ||
exit 0
29 # Read configuration variable file if it is present
30 [ -r /etc
/default
/$NAME ] && .
/etc
/default
/$NAME
32 # Load the VERBOSE setting and other rcS variables
36 # Function that starts the daemon/service
43 if [ -d /proc
/`cat $PIDFILE`/ ]
46 echo "$NAME already running."
54 start-stop-daemon
--start --quiet --exec $DAEMON --pidfile $PIDFILE -b -m --name $NAME --user $USER
58 # Function that stops the daemon/service
62 start-stop-daemon
--stop --quiet --oknodo --pidfile $PIDFILE --name $NAME --user $USER
68 echo -n "Starting $DESC: "
73 echo -n "Stopping $DESC: "
80 # If the "reload" option is implemented, move the "force-reload"
81 # option to the "reload" entry above. If not, "force-reload" is
82 # just the same as "restart".
84 echo -n "Restarting $DESC: "
91 #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
92 echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2