packages/net/shorewall/files/shorewall.init

25 lines
423 B
Plaintext
Raw Normal View History

#!/bin/sh /etc/rc.common
START=46
start() {
touch /var/log/messages
mkdir -p /var/lock/subsys
/sbin/shorewall -f start 1>/dev/null &
}
stop() {
/sbin/shorewall stop 1>/dev/null
}
restart() {
if [ -f /var/lib/shorewall/restore ] ; then
/sbin/shorewall restore
else
/sbin/shorewall restart 1>/dev/null
fi
}
clear() {
/sbin/shorewall clear
}