mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-19 17:28:35 +02:00
Add LOGFILE option to Shorewall-init configuration.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
c823b0e41e
commit
f7104b3d26
@ -180,9 +180,11 @@ else
|
|||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
[ -n "$LOGFILE" ] || LOGFILE=/dev/null
|
||||||
|
|
||||||
for PRODUCT in $PRODUCTS; do
|
for PRODUCT in $PRODUCTS; do
|
||||||
if [ -x $VARDIR/$PRODUCT/firewall ]; then
|
if [ -x $VARDIR/$PRODUCT/firewall ]; then
|
||||||
( ${VARDIR}/$PRODUCT/firewall -V0 $COMMAND $INTERFACE ) || true
|
( ${VARDIR}/$PRODUCT/firewall -V0 $COMMAND $INTERFACE >> $LOGFILE 2>&1 ) || true
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -16,3 +16,8 @@ IFUPDOWN=0
|
|||||||
# during 'start' and will save them there during 'stop'.
|
# during 'start' and will save them there during 'stop'.
|
||||||
#
|
#
|
||||||
SAVE_IPSETS=""
|
SAVE_IPSETS=""
|
||||||
|
#
|
||||||
|
# Where Up/Down events get logged
|
||||||
|
#
|
||||||
|
LOGFILE=/var/log/shorewall-updown.log
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user