3 # firestarter Firestarter firewall.
5 # chkconfig: 2345 11 89
7 # description: Starts and stops FireStarter, an easy-to-use,
8 # yet powerful, Linux firewall tool for GNOME.
12 # Source function library
13 . /etc/rc.d/init.d/functions
16 . /etc/sysconfig/network
18 FS_CONTROL=/etc/firestarter/firestarter.sh
20 # Check that networking is up.
21 if is_yes "${NETWORKING}"; then
22 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
23 msg_network_down "firestarter"
31 # Check if the service is already running?
32 if [ -f /var/lock/subsys/firestarter ]; then
33 msg_already_running "firestarter"
37 msg_starting "firestarter"
39 $FS_CONTROL start > /dev/null
41 if [ $RETVAL -eq 0 ]; then
42 touch /var/lock/subsys/firestarter
50 if [ -f /var/lock/subsys/firestarter ]; then
51 msg_not_running "firestarter"
55 msg_stopping "firestarter"
57 $FS_CONTROL stop > /dev/null
58 rm -f /var/lock/subsys/firestarter
63 if [ ! -f /var/lock/subsys/firestarter ]; then
64 msg_not_running "firestarter"
73 # See how we were called.
96 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"