3 # fakebo This shell script takes care of starting and stopping
4 # fakebo (trojan server fake daemon).
8 # description: FakeBO fakes trojan server responses (Back Orifice, \
9 # NetBus, etc.) and logs every attempt to a logfile or stdout.
12 # Source function library
13 . /etc/rc.d/init.d/functions
16 . /etc/sysconfig/network
18 # Get service config - may override defaults
19 [ -f /etc/sysconfig/fakebo ] && . /etc/sysconfig/fakebo
21 # Check that networking is up.
22 if is_no "${NETWORKING}"; then
23 # nls "ERROR: Networking is down. %s can't be run." fakebo
24 msg_Network_Down fakebo
29 # See how we were called.
32 # Check if the service is already running?
33 if [ ! -f /var/lock/subsys/fakebo ]; then
34 # show "Starting %s service." fakebo
38 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/fakebo
40 # show "%s service is already running." fakebo
41 msg_Already_Running fakebo
47 # show "Stopping %s service" fakebo
48 if [ -f /var/lock/subsys/fakebo ]; then
51 rm -f /var/lock/subsys/fakebo >/dev/null 2>&1
53 # show "%s service is not running." fakebo
54 msg_Not_Running fakebo
67 # show "Usage: %s {start|stop|status|restart|reload|force-reload}" $0
68 msg_Usage "$0 {start|stop|status|restart}"