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 msg_network_down bfilter
33 # See how we were called.
36 # Check if the service is already running?
37 if [ ! -f /var/lock/subsys/bfilter ]; then
39 daemon --user bfilter bfilter
41 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/bfilter
43 msg_already_running bfilter
47 if [ -f /var/lock/subsys/bfilter ]; then
51 rm -f /var/lock/subsys/bfilter
53 msg_not_running bfilter
62 if [ -f /var/lock/subsys/bfilter ]; then
67 msg_not_running bfilter >&2
72 # if program allows reloading without stopping
85 msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
91 # This must be last line !
92 # vi:syntax=sh:tw=78:ts=8:sw=4