From 8683b80ad045d1ab65d8ee43d19c5362f0c3601a Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Thu, 9 Mar 2017 12:50:30 -0800 Subject: [PATCH] 'reload' documentation corrections - Add command synopsis to the manpage - Correct command synopsis in help output Signed-off-by: Tom Eastep --- Shorewall-core/lib.cli | 13 +++++--- Shorewall-core/manpages/shorewall.xml | 44 ++++++++++++++++++++++++--- 2 files changed, 48 insertions(+), 9 deletions(-) diff --git a/Shorewall-core/lib.cli b/Shorewall-core/lib.cli index f97c4bb5e..1bcfd679d 100644 --- a/Shorewall-core/lib.cli +++ b/Shorewall-core/lib.cli @@ -4264,12 +4264,17 @@ usage() # $1 = exit status echo " reenable " ecko " refresh [ -d ] [ -n ] [ -T ] [ -D ] [ ... ]" echo " reject
..." - ecko " reload [ -s ] [ -c ] [ -r ] [ -T ] [ -i ] [ ] " + + if [ -n "$g_lite" ]; then + echo " reload [ -n ] [ -p ] [ -f ] [ -C ] [ ]" + else + echo " reload [ -n ] [ -p ] [-d] [ -f ] [ -c ] [ -T ] [ -i ] [ -C ] [ ]" + fi if [ -z "$g_lite" ]; then - echo " remote-reload [ -s ] [ -c ] [ -r ] [ -T ] [ -i ] [ ] " - echo " remote-restart [ -s ] [ -c ] [ -r ] [ -T ] [ -i ] [ ] " - echo " remote-start [ -s ] [ -c ] [ -r ] [ -T ] [ -i ] [ ] " + echo " remote-reload [ -n ] [ -s ] [ -c ] [ -r ] [ -T ] [ -i ] [ ] " + echo " remote-restart [ -n ] [ -s ] [ -c ] [ -r ] [ -T ] [ -i ] [ ] " + echo " remote-start [ -n ] [ -s ] [ -c ] [ -r ] [ -T ] [ -i ] [ ] " fi echo " reset [ ... ]" diff --git a/Shorewall-core/manpages/shorewall.xml b/Shorewall-core/manpages/shorewall.xml index 4a1c37c5f..bad450edd 100644 --- a/Shorewall-core/manpages/shorewall.xml +++ b/Shorewall-core/manpages/shorewall.xml @@ -432,6 +432,33 @@ address + + shorewall[6][-lite] + + | + + options + + + + + + + + + + + + + + + + + + directory + + shorewall[6] @@ -1916,10 +1943,11 @@ remote-start - [-] [-] [- - root-user-name] [-] - [-] [ [ -D ] directory ] - [ system ] + [-] [-] [-] + [- root-user-name] + [-] [-] [ [ -D ] + directory ] [ + system ] This command was renamed from load in @@ -1955,6 +1983,9 @@ directory, then the option must be given. + The option causes Shorewall to avoid + updating the routing table(s). + If -s is specified and the start command succeeds, then the remote Shorewall-lite configuration is saved by executing - remote-reload + remote-reload [-] [-] [-] [- root-user-name] [-] [-] [ [ -D ] @@ -2025,6 +2056,9 @@ directory, then the option must be given. + The option causes Shorewall to avoid + updating the routing table(s). + If -s is specified and the restart command succeeds, then the remote Shorewall-lite configuration is saved by executing