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 "$1" != stop -a "$1" != status ]; then
24 msg_network_down fakebo
32 # See how we were called.
35 # Check if the service is already running?
36 if [ ! -f /var/lock/subsys/fakebo ]; then
40 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/fakebo
42 msg_already_running fakebo
47 if [ -f /var/lock/subsys/fakebo ]; then
50 rm -f /var/lock/subsys/fakebo >/dev/null 2>&1
52 msg_not_running fakebo
65 msg_usage "$0 {start|stop|restart|force-reload|status}"