3 # skeleton example file to build /etc/init.d/ scripts.
4 # This file should be used to construct scripts for /etc/init.d.
6 # Written by Miquel van Smoorenburg <miquels@cistron.nl>.
7 # Modified for Debian GNU/Linux
8 # by Ian Murdock <imurdock@gnu.ai.mit.edu>.
10 # Version: @(#)skeleton 1.9.1 08-Apr-2002 miquels@cistron.nl
13 PATH
=/usr
/local/sbin
:/usr
/local/bin
:/sbin
:/bin
:/usr
/sbin
:/usr
/bin
14 DAEMON
=/usr
/bin
/become
16 DESC
="Become authentication server"
18 test -x
$DAEMON ||
exit 0
20 test -f
/etc
/default
/$NAME && .
/etc
/default
/$NAME
21 if test "$START" != true
; then
22 echo "Not starting $DESC -- disabled in /etc/default/$NAME."
30 echo -n
"Starting $DESC: $NAME"
31 start-stop-daemon
--start
--quiet
--pidfile
/var
/run
/become.pid \
32 --exec $DAEMON -- --daemon
36 echo -n
"Stopping $DESC: $NAME"
37 start-stop-daemon
--stop
--oknodo
--quiet \
38 --pidfile
/var
/run
/become.pid
--exec $DAEMON
42 echo -n
"Reloading $DESC configuration..."
43 start-stop-daemon
--stop
--signal
1 --quiet
--pidfile \
44 /var
/run
/become.pid
--exec $DAEMON
48 echo -n
"Restarting $DESC: $NAME"
49 start-stop-daemon
--stop
--quiet
--pidfile \
50 /var
/run
/become.pid
--exec $DAEMON
52 start-stop-daemon
--start
--quiet
--pidfile \
53 /var
/run
/become.pid
--exec $DAEMON -- --daemon
58 echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2