#!/bin/sh # # wwwoffled This shell script takes care of starting and stopping # wwwoffled (www offline explorer) # Source function library. . /etc/rc.d/init.d/functions [ -f /usr/local/sbin/wwwoffled ] || exit 0 # See how we were called. case "$1" in start) # Start daemons. echo -n "Starting wwwoffled: " daemon /usr/local/sbin/wwwoffled echo touch /var/lock/subsys/wwwoffled ;; stop) # Stop daemons. echo -n "Shutting down wwwoffled: " killproc wwwoffled echo rm -f /var/lock/subsys/wwwoffled ;; status) status wwwoffled ;; restart) $0 stop $0 start ;; *) echo "Usage: wwwoffled {start|stop|restart|status}" exit 1 esac exit 0