diff --git a/Shorewall/compiler b/Shorewall/compiler index e013ad1f4..c59dce393 100755 --- a/Shorewall/compiler +++ b/Shorewall/compiler @@ -9047,7 +9047,7 @@ do_initialize() { # Give Usage Information # usage() { - echo "Usage: $0 [debug] check|{generate|compile} }" + echo "Usage: $0 [debug] check|compile }" exit 1 } @@ -9075,10 +9075,9 @@ case "$COMMAND" in compile_firewall ;; - compile|generate) + compile) [ $# -ne 2 ] && usage do_initialize - COMMAND=compile compile_firewall $2 ;; diff --git a/Shorewall/help b/Shorewall/help index 5b76dbfe0..1e307e34b 100755 --- a/Shorewall/help +++ b/Shorewall/help @@ -97,8 +97,6 @@ compile) other than where the compiled script will run. This option disables certain configuration options that require the script to be compiled where it is to be run. - - 'generate' is a synonym for 'compile'." ;; debug) @@ -169,19 +167,6 @@ forget) See also \"help save\"" ;; -generate) - echo "generate: generate [ -e ] [ ] - Compiles the current configuration into the executable file - /var/lib/shorewall/ - - When -e is specified, the compilation is being performed on a system - other than where the compiled script will run. This option disables - certain configuration options that require the script to be compiled - where it is to be run. - - 'compile' is a synonym for 'generate'." - ;; - help) echo "help: help [ | host | address ] Display helpful information about the shorewall commands." @@ -235,17 +220,6 @@ reject) See also \"help address\"" ;; -reload) - echo "reload: reload [ -q ] [ -n ] [ ] - - Causes Shorewall to generate a new compiled restore file using the named directory - as the first search directory for configuration file. If that generation is error-free, - the generated restore file is executed. - - If \"-q\" is specified, less detain is displayed making it easier to spot warnings - If \"-n\" is specified, no changes to routing will be made" - ;; - reset) echo "reset: reset All the packet and byte counters in the firewall are reset." diff --git a/Shorewall/init.sh b/Shorewall/init.sh index 64c3ecdb5..aa1200f66 100644 --- a/Shorewall/init.sh +++ b/Shorewall/init.sh @@ -32,6 +32,7 @@ RCDLINKS="2,S41 3,S41 6,K41" # shorewall start Starts the firewall # shorewall restart Restarts the firewall # shorewall reload Reload the firewall +# (same as restart) # shorewall stop Stops the firewall # shorewall status Displays firewall status # @@ -75,9 +76,13 @@ case "$command" in start) exec /sbin/shorewall $OPTIONS $@ ;; - stop|restart|status|reload) + stop|restart|status) exec /sbin/shorewall $@ ;; + reload) + shift + exec /sbin/shorewall restart $@ + ;; *) usage ;; diff --git a/Shorewall/prog.footer b/Shorewall/prog.footer index eb75bd586..cdd1f2867 100644 --- a/Shorewall/prog.footer +++ b/Shorewall/prog.footer @@ -2,7 +2,7 @@ # Give Usage Information # usage() { - echo "Usage: $0 [ -q ] [ -v ] [ -n ] [ start|stop|clear|reload|restart|status|version ]" + echo "Usage: $0 [ -q ] [ -v ] [ -n ] [ start|stop|clear|restart|status|version ]" exit $1 } ################################################################################ @@ -79,18 +79,6 @@ case "$COMMAND" in progress_message3 "Starting Shorewall...." fi - define_firewall - status=$? - progress_message3 "done." - ;; - reload) - if shorewall_is_started; then - progress_message3 "Reloading Shorewall...." - else - echo "Shorewall is not running" >&2 - progress_message3 "Starting Shorewall...." - fi - define_firewall status=$? progress_message3 "done." diff --git a/Shorewall/releasenotes.txt b/Shorewall/releasenotes.txt index cb12b9b68..d0e39f0b4 100755 --- a/Shorewall/releasenotes.txt +++ b/Shorewall/releasenotes.txt @@ -74,9 +74,9 @@ Migration Considerations: New Features: -1) A new 'shorewall generate' command has been added. +1) A new 'shorewall compile' command has been added. - shorewall generate [ -v ] [ -q ] [ -e ] [ ]