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_yes "${NETWORKING}"; then
23 if [ ! -f /var/lock/subsys/network -a != stop -a != status ]; then
24 # nls "ERROR: Networking is down. %s can't be run." fakebo
25 msg_network_down fakebo
33 # See how we were called.
36 # Check if the service is already running?
37 if [ ! -f /var/lock/subsys/fakebo ]; then
38 # show "Starting %s service." fakebo
42 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/fakebo
44 # show "%s service is already running." fakebo
45 msg_already_running fakebo
50 # show "Stopping %s service" fakebo
51 if [ -f /var/lock/subsys/fakebo ]; then
54 rm -f /var/lock/subsys/fakebo >/dev/null 2>&1
56 # show "%s service is not running." fakebo
57 msg_not_running fakebo
70 # show "Usage: %s {start|stop|restart|force-reload|status}"
71 msg_usage "$0 {start|stop|restart|force-reload|status}"