7 # description: The Blitzed Open Proxy Monitor
11 # Source function library
12 . /etc/rc.d/init.d/functions
15 . /etc/sysconfig/network
18 [ -f /etc/sysconfig/bopm ] && . /etc/sysconfig/bopm
20 # Check that networking is up.
21 if is_yes "${NETWORKING}"; then
22 if [ ! -f /var/lock/subsys/network ]; then
30 # See how we were called.
33 # Check if the service is already running?
34 if [ ! -f /var/lock/subsys/bopm ]; then
36 daemon --user bopm bopm
38 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/bopm
40 msg_already_running bopm
44 if [ -f /var/lock/subsys/bopm ]; then
47 killproc --pidfile bopm/bopm.pid bopm
48 rm -f /var/lock/subsys/bopm /var/run/bopm/bopm.pid
53 restart|reload|force-reload)
63 msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
69 # This must be last line !
70 # vi:syntax=sh:tw=78:ts=4:sw=4