mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-22 22:30:58 +01:00
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:
parent
1d87fc0102
commit
d66206ba8b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user