mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-23 14:48:51 +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)
|
||||
echo "reload: reload <system>
|
||||
Causes the shorewall configuration in the current working directory to be
|
||||
compiled into a program called 'firewall'. If compilation is successful,
|
||||
the '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."
|
||||
echo "reload: reload [ <directory> ] <system>
|
||||
If <directory> is omitted, then the current working directory is assumed.
|
||||
|
||||
Requires that Shorewall Lite be installed on the named <system>.
|
||||
|
||||
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)
|
||||
|
@ -1323,7 +1323,7 @@ usage() # $1 = exit status
|
||||
echo " logwatch [<refresh interval>]"
|
||||
echo " refresh"
|
||||
echo " reject <address> ..."
|
||||
echo " reload [ <directory> ] [ <system> ]"
|
||||
echo " reload [ <directory> ] <system>"
|
||||
echo " reset"
|
||||
echo " restart [ -n ] [ <directory> ]"
|
||||
echo " restore [ -n ] [ <file name> ]"
|
||||
@ -1633,10 +1633,6 @@ case "$COMMAND" in
|
||||
reload)
|
||||
shift
|
||||
case $# in
|
||||
0)
|
||||
directory="."
|
||||
system="localhost"
|
||||
;;
|
||||
1)
|
||||
directory="."
|
||||
system=$1
|
||||
|
@ -948,16 +948,15 @@
|
||||
Shorewall Lite)</term>
|
||||
|
||||
<listitem>
|
||||
<para><command>reload [ [ <directory> ] <system>
|
||||
]</command></para>
|
||||
<para><command>reload [ <directory> ]
|
||||
<system></command></para>
|
||||
|
||||
<para>If <directory> is omitted, the current working directory
|
||||
is assumed. If <system> is omitted, the local system is
|
||||
assumed.</para>
|
||||
is assumed. </para>
|
||||
|
||||
<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
|
||||
system via ssh). The command is equivalent to:</para>
|
||||
install it on a system (provided that the user has root access to
|
||||
the system via ssh). The command is equivalent to:</para>
|
||||
|
||||
<simplelist>
|
||||
<member><command>/sbin/shorewall compile -e <directory>
|
||||
@ -974,9 +973,11 @@
|
||||
<para>In other words, the configuration in the specified (or
|
||||
defaulted) directory is compiled to a file called
|
||||
<filename>firewall</filename> in that directory. If compilation
|
||||
succeeds, then <filename>firewall</filename> is copied to the
|
||||
(usually remote) <system> using scp. If the copy succeeds,
|
||||
Shorewall Lite on <system> is restarted via ssh.</para>
|
||||
succeeds, then <filename>firewall</filename> is copied to
|
||||
<system> using scp. If the copy succeeds, Shorewall Lite on
|
||||
<system> is restarted via ssh.</para>
|
||||
|
||||
<para>Example: <command>shorewall reload gateway</command></para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user