3 # shorewall The Shoreline Firewall (Shorewall) Packet Filtering Firewall
5 # chkconfig: 2345 10 89
7 # description: Packet filtering firewall
10 # Source function library
11 . /etc/rc.d/init.d/functions
12 . /usr/share/shorewall/functions
15 . /etc/sysconfig/network
17 # Check that networking is up
18 if is_yes "${NETWORKING}"; then
19 if [ ! -f /var/lock/subsys/network ]; then
20 msg_network_down shorewall
28 if [ -f /var/lock/subsys/shorewall ]; then
29 msg_already_running shorewall
33 msg_starting "Shorewall"
35 # FIXME: use daemon and handle OK/FAIL
36 exec /sbin/shorewall -q start >/dev/null
37 touch /var/lock/subsys/shorewall
41 if [ ! -f /var/lock/subsys/shorewall ]; then
42 msg_not_running shorewall
46 msg_stopping "Shorewall"
48 # FIXME: use killproc or handle OK/FAIL manually
49 exec /sbin/shorewall stop >/dev/null
50 rm -f /var/lock/subsys/shorewall >/dev/null 2>&1
53 # See how we were called
61 exec /sbin/shorewall status
69 msg_usage "$0 {start|stop|restart|status}"