4 # description: This script uses Lighttpd web server for \
5 # working Baculum WebGUI tool.
10 # Required-Start: $local_fs $remote_fs $network $syslog $named
11 # Required-Stop: $local_fs $remote_fs $network $syslog $named
12 # Default-Start: 2 3 4 5
14 # Short-Description: Start/stop Baculum
15 # Description: Start the Baculum WebGUI Bacula Community tool.
18 DESC="Baculum WebGUI Bacula Community tool"
20 SCRIPTNAME=/etc/init.d/$NAME
21 DAEMON=/usr/sbin/lighttpd
22 DAEMON_OPTS="-f /etc/baculum/baculum.lighttpd.conf"
23 PIDFILE=/var/run/$NAME.pid
24 LOCKFILE=/var/lock/subsys/$NAME
26 test -x $DAEMON || exit 0
30 $DAEMON -t $DAEMON_OPTS > /dev/null || exit $?
40 [ $1 -eq 0 ] && RES=OK
48 if test -f /lib/lsb/init-functions; then
49 . /lib/lsb/init-functions
52 . /etc/init.d/functions
57 log_daemon_msg "Starting $DESC" $NAME
58 if ! ${DAEMON} $DAEMON_OPTS
67 log_daemon_msg "Stopping $DESC" $NAME
68 if kill -TERM `<$PIDFILE`
86 echo "Usage: $SCRIPTNAME {start|stop|restart|status}" >&2