3 # bfilter A filtering Web proxy
7 # description: BFilter is a filtering web proxy. It was originally \
8 # intended for removing banner ads only, but at some point \
9 # it has been extended to remove popups and webbugs. \
10 # Its main advantage over the similar tools is its heuristic \
11 # ad detection algorithm.
16 # Source function library
17 . /etc/rc.d/init.d/functions
20 . /etc/sysconfig/network
22 # Check that networking is up.
23 if is_yes "${NETWORKING}"; then
24 if [ ! -f /var/lock/subsys/network ]; then
25 # nls "ERROR: Networking is down. %s can't be run." bfilter
26 msg_network_down bfilter
34 # See how we were called.
37 # Check if the service is already running?
38 if [ ! -f /var/lock/subsys/bfilter ]; then
39 # show "Starting %s service" bfilter
41 daemon --user bfilter bfilter
43 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/bfilter
45 # show "%s service is already running." bfilter
46 msg_already_running bfilter
50 if [ -f /var/lock/subsys/bfilter ]; then
52 # show "Stopping %s service" bfilter
55 rm -f /var/lock/subsys/bfilter
57 # show "%s service is not running." bfilter
58 msg_not_running bfilter
67 if [ -f /var/lock/subsys/bfilter ]; then
68 # show "Reload %s service" bfilter
73 # show "%s service is not running." bfilter
74 msg_not_running bfilter >&2
79 # if program allows reloading without stopping
92 # show "Usage: %s {start|stop|restart|reload|force-reload|status}"
93 msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
99 # This must be last line !
100 # vi:syntax=sh:tw=78:ts=8:sw=4