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 /usr/sbin/shorewall -q start >/dev/null
37 if [ $RETVAL -eq 0 ]; then
39 touch /var/lock/subsys/shorewall
46 if [ ! -f /var/lock/subsys/shorewall ]; then
47 msg_not_running shorewall
51 msg_stopping "Shorewall"
53 /usr/sbin/shorewall stop >/dev/null
55 if [ $RETVAL -eq 0 ]; then
57 rm -f /var/lock/subsys/shorewall >/dev/null 2>&1
63 # See how we were called
73 exec /usr/sbin/shorewall status
81 msg_usage "$0 {start|stop|restart|status}"