Another 'reload' tweak

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4101 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-06-14 19:46:37 +00:00
parent f85db6a849
commit 6574995249
3 changed files with 21 additions and 20 deletions

View File

@ -249,12 +249,16 @@ reset)
;; ;;
reload) reload)
echo "reload: reload <system> echo "reload: reload [ <directory> ] <system>
Causes the shorewall configuration in the current working directory to be If <directory> is omitted, then the current working directory is assumed.
compiled into a program called 'firewall'. If compilation is successful,
the 'firewall' script is copied via scp to the /usr/share/shorewall-lite/ Requires that Shorewall Lite be installed on the named <system>.
directory on <system>. If the script is copied successfully, Shorewall
Lite on <system> is restarted via ssh." Causes the shorewall configuration in <directory> to be compiled into a
program called '<directory>/firewall'. If compilation is successful,
the '<directory>/firewall' script is copied via scp to the
/usr/share/shorewall-lite/ directory on <system>. If the script is copied
successfully, Shorewall Lite on <system> is restarted via ssh."
;; ;;
restart) restart)

View File

@ -1323,7 +1323,7 @@ usage() # $1 = exit status
echo " logwatch [<refresh interval>]" echo " logwatch [<refresh interval>]"
echo " refresh" echo " refresh"
echo " reject <address> ..." echo " reject <address> ..."
echo " reload [ <directory> ] [ <system> ]" echo " reload [ <directory> ] <system>"
echo " reset" echo " reset"
echo " restart [ -n ] [ <directory> ]" echo " restart [ -n ] [ <directory> ]"
echo " restore [ -n ] [ <file name> ]" echo " restore [ -n ] [ <file name> ]"
@ -1633,10 +1633,6 @@ case "$COMMAND" in
reload) reload)
shift shift
case $# in case $# in
0)
directory="."
system="localhost"
;;
1) 1)
directory="." directory="."
system=$1 system=$1

View File

@ -948,16 +948,15 @@
Shorewall Lite)</term> Shorewall Lite)</term>
<listitem> <listitem>
<para><command>reload [ [ &lt;directory&gt; ] &lt;system&gt; <para><command>reload [ &lt;directory&gt; ]
]</command></para> &lt;system&gt;</command></para>
<para>If &lt;directory&gt; is omitted, the current working directory <para>If &lt;directory&gt; is omitted, the current working directory
is assumed. If &lt;system&gt; is omitted, the local system is is assumed. </para>
assumed.</para>
<para>Allows a non-root user to compile a shorewall script and <para>Allows a non-root user to compile a shorewall script and
install it on a system (provided that the user has access to the install it on a system (provided that the user has root access to
system via ssh). The command is equivalent to:</para> the system via ssh). The command is equivalent to:</para>
<simplelist> <simplelist>
<member><command>/sbin/shorewall compile -e &lt;directory&gt; <member><command>/sbin/shorewall compile -e &lt;directory&gt;
@ -974,9 +973,11 @@
<para>In other words, the configuration in the specified (or <para>In other words, the configuration in the specified (or
defaulted) directory is compiled to a file called defaulted) directory is compiled to a file called
<filename>firewall</filename> in that directory. If compilation <filename>firewall</filename> in that directory. If compilation
succeeds, then <filename>firewall</filename> is copied to the succeeds, then <filename>firewall</filename> is copied to
(usually remote) &lt;system&gt; using scp. If the copy succeeds, &lt;system&gt; using scp. If the copy succeeds, Shorewall Lite on
Shorewall Lite on &lt;system&gt; is restarted via ssh.</para> &lt;system&gt; is restarted via ssh.</para>
<para>Example: <command>shorewall reload gateway</command></para>
</listitem> </listitem>
</varlistentry> </varlistentry>