forked from extern/shorewall_code
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:
parent
902e11a51f
commit
5c9db195e9
@ -10,6 +10,9 @@ Changes in 2.2.4
|
|||||||
|
|
||||||
5) Add Paul Traina's patch to install.sh.
|
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
|
Changes in 2.2.3
|
||||||
|
|
||||||
1) Added the 'continue' extension script.
|
1) Added the 'continue' extension script.
|
||||||
|
@ -55,6 +55,16 @@ usage() {
|
|||||||
exit 1
|
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 #
|
# 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)
|
start)
|
||||||
|
|
||||||
exec /sbin/shorewall -f start
|
exec /sbin/shorewall $OPTIONS start
|
||||||
;;
|
;;
|
||||||
|
|
||||||
stop|restart|status)
|
stop|restart|status)
|
||||||
|
@ -87,6 +87,17 @@ New Features in version 2.2.4
|
|||||||
directly but may do so indirectly by running /sbin/shorewall with
|
directly but may do so indirectly by running /sbin/shorewall with
|
||||||
the 'nolock' option.
|
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
|
Problems corrected in version 2.2.3
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user