mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-11 08:08:12 +01:00
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:
parent
f85db6a849
commit
6574995249
@ -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)
|
||||||
|
@ -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
|
||||||
|
@ -948,16 +948,15 @@
|
|||||||
Shorewall Lite)</term>
|
Shorewall Lite)</term>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para><command>reload [ [ <directory> ] <system>
|
<para><command>reload [ <directory> ]
|
||||||
]</command></para>
|
<system></command></para>
|
||||||
|
|
||||||
<para>If <directory> is omitted, the current working directory
|
<para>If <directory> is omitted, the current working directory
|
||||||
is assumed. If <system> 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 <directory>
|
<member><command>/sbin/shorewall compile -e <directory>
|
||||||
@ -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) <system> using scp. If the copy succeeds,
|
<system> using scp. If the copy succeeds, Shorewall Lite on
|
||||||
Shorewall Lite on <system> is restarted via ssh.</para>
|
<system> is restarted via ssh.</para>
|
||||||
|
|
||||||
|
<para>Example: <command>shorewall reload gateway</command></para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user