]> git.meshlink.io Git - meshlink/commitdiff
Allow extra options to be passed to "tinc restart" again.
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 20 Jul 2013 22:20:54 +0000 (00:20 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 20 Jul 2013 22:20:54 +0000 (00:20 +0200)
doc/tinc.8.in
doc/tinc.texi
src/tincctl.c

index 2cff94c351dcc0c21b828b60ea55a1764b6b17cb..ebf9df19512a6176b3c5f0892c468a4531652a6c 100644 (file)
@@ -106,9 +106,10 @@ optionally with the given extra options.
 .It stop
 Stop
 .Xr tincd 8 .
-.It restart
+.It restart Op tincd options
 Restart
-.Xr tincd 8 .
+.Xr tincd 8 ,
+optionally with the given extra options.
 .It reload
 Partially rereads configuration files. Connections to hosts whose host
 config files are removed are closed. New outgoing connections specified
index a39e9ae6de2ab1cea4219e912ac36283b0adda63..a2952933bf7380effce9246231d599e6dac67da9 100644 (file)
@@ -2238,8 +2238,8 @@ Start @samp{tincd}, optionally with the given extra options.
 @item stop
 Stop @samp{tincd}.
 
-@item restart
-Restart @samp{tincd}.
+@item restart [tincd options]
+Restart @samp{tincd}, optionally with the given extra options.
 
 @item reload
 Partially rereads configuration files. Connections to hosts whose host
index 4349b79c07ed0d62218ddc69ce9522b96a964a13..4c5102b2a5cb751e3329c918281ef74a7a47422d 100644 (file)
@@ -116,7 +116,7 @@ static void usage(bool status) {
                                "  del VARIABLE [VALUE]       Remove VARIABLE [only ones with watching VALUE]\n"
                                "  start [tincd options]      Start tincd.\n"
                                "  stop                       Stop tincd.\n"
-                               "  restart                    Restart tincd.\n"
+                               "  restart [tincd options]    Restart tincd.\n"
                                "  reload                     Partially reload configuration of running tincd.\n"
                                "  pid                        Show PID of currently running tincd.\n"
                                "  generate-keys [bits]       Generate new RSA and ECDSA public/private keypairs.\n"
@@ -871,7 +871,7 @@ static int cmd_stop(int argc, char *argv[]) {
 }
 
 static int cmd_restart(int argc, char *argv[]) {
-       cmd_stop(argc, argv);
+       cmd_stop(1, argv);
        return cmd_start(argc, argv);
 }