mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-22 22:30:58 +01:00
Correct Debian Shorewall-init SysV init script.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
cc72b75ba9
commit
be7a6ec35d
@ -106,19 +106,13 @@ shorewall_start () {
|
|||||||
for PRODUCT in $PRODUCTS; do
|
for PRODUCT in $PRODUCTS; do
|
||||||
setstatedir
|
setstatedir
|
||||||
|
|
||||||
if [ ! -x ${VARDIR}/$PRODUCT/firewall ]; then
|
if [ -x ${STATEDIR}/$PRODUCT/firewall ]; then
|
||||||
if [ $PRODUCT = shorewall -o $PRODUCT = shorewall6 ]; then
|
|
||||||
${SBINDIR}/$PRODUCT compile
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -x ${VARDIR}/$PRODUCT/firewall ]; then
|
|
||||||
#
|
#
|
||||||
# Run in a sub-shell to avoid name collisions
|
# Run in a sub-shell to avoid name collisions
|
||||||
#
|
#
|
||||||
(
|
(
|
||||||
if ! ${VARDIR}/$PRODUCT/firewall status > /dev/null 2>&1; then
|
if ! ${STATE}/$PRODUCT/firewall status > /dev/null 2>&1; then
|
||||||
${VARDIR}/$PRODUCT/firewall stop || echo_notdone
|
${STATE}/$PRODUCT/firewall stop || echo_notdone
|
||||||
fi
|
fi
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
@ -138,14 +132,8 @@ shorewall_stop () {
|
|||||||
for PRODUCT in $PRODUCTS; do
|
for PRODUCT in $PRODUCTS; do
|
||||||
setstatedir
|
setstatedir
|
||||||
|
|
||||||
if [ ! -x ${VARDIR}/$PRODUCT/firewall ]; then
|
if [ -x ${STATEDIR}/$PRODUCT/firewall ]; then
|
||||||
if [ $PRODUCT = shorewall -o $PRODUCT = shorewall6 ]; then
|
${STATEDIR}/$PRODUCT/firewall clear || echo_notdone
|
||||||
${SBINDIR}/$PRODUCT compile
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -x ${VARDIR}/$PRODUCT/firewall ]; then
|
|
||||||
${VARDIR}/$PRODUCT/firewall clear || echo_notdone
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user