Correct issues with non-Debian init script

Remove 'Required*' lines
Correct PRODUCT->product

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2010-05-21 10:13:28 -07:00
parent 1d87fc0102
commit d66206ba8b

View File

@ -26,8 +26,6 @@
# #
### BEGIN INIT INFO ### BEGIN INIT INFO
# Provides: shorewall-init # Provides: shorewall-init
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 3 4 5 # Default-Start: 3 4 5
# Default-Stop: 0 1 2 6 # Default-Stop: 0 1 2 6
# Short-Description: Initialize the firewall at boot time # Short-Description: Initialize the firewall at boot time
@ -61,7 +59,7 @@ shorewall_start () {
echo -n "Initializing \"Shorewall-based firewalls\": " echo -n "Initializing \"Shorewall-based firewalls\": "
for product in $PRODUCTS; do for product in $PRODUCTS; do
vardir=/var/lib/$product vardir=/var/lib/$product
[ -f /etc/$PRODUCT/vardir ] && . /etc/$PRODUCT/vardir [ -f /etc/$product/vardir ] && . /etc/$product/vardir
if [ -x ${vardir}/firewall ]; then if [ -x ${vardir}/firewall ]; then
${vardir}/firewall stop || notdone ${vardir}/firewall stop || notdone
fi fi
@ -78,7 +76,7 @@ shorewall_stop () {
echo -n "Clearing \"Shorewall-based firewalls\": " echo -n "Clearing \"Shorewall-based firewalls\": "
for product in $PRODUCTS; do for product in $PRODUCTS; do
vardir=/var/lib/$PRODUCT vardir=/var/lib/$PRODUCT
[ -f /etc/$PRODUCT/vardir ] && . /etc/$PRODUCT/vardir [ -f /etc/$product/vardir ] && . /etc/$product/vardir
if [ -x ${vardir}/firewall ]; then if [ -x ${vardir}/firewall ]; then
${vardir}/firewall clear || notdone ${vardir}/firewall clear || notdone
fi fi