Add OPTIONS for startup

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2049 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2005-04-11 22:12:46 +00:00
parent 902e11a51f
commit 5c9db195e9
3 changed files with 25 additions and 1 deletions

View File

@ -10,6 +10,9 @@ Changes in 2.2.4
5) Add Paul Traina's patch to install.sh.
6) Allow startup options to be overridden in /etc/sysconfig/shorewall
or /etc/default/shorewall.
Changes in 2.2.3
1) Added the 'continue' extension script.

View File

@ -55,6 +55,16 @@ usage() {
exit 1
}
################################################################################
# Get startup options (override default)
################################################################################
OPTIONS="-f"
if [ -f /etc/sysconfig/shorewall ]; then
. /etc/sysconfig/shorewall
elif [ -f /etc/default/shorewall ] ; then
. /etc/default/shorewall
fi
################################################################################
# E X E C U T I O N B E G I N S H E R E #
################################################################################
@ -64,7 +74,7 @@ case "$command" in
start)
exec /sbin/shorewall -f start
exec /sbin/shorewall $OPTIONS start
;;
stop|restart|status)

View File

@ -87,6 +87,17 @@ New Features in version 2.2.4
directly but may do so indirectly by running /sbin/shorewall with
the 'nolock' option.
3) By default, shorewall is started with the "-f" (fast) option when
your system boots. You can override that setting by setting the
OPTIONS variable in /etc/sysconfig/shorewall (SuSE/Redhat) or
/etc/default/shorewall (Debian/Bering). If neither file exists, feel
free to create one.
Example: If you want Shorewall to always use the config files even
if there is a saved configuration, then specify:
OPTIONS=""
-----------------------------------------------------------------------
Problems corrected in version 2.2.3