tincctl restart should work even if no tincd is running.
authorGuus Sliepen <guus@tinc-vpn.org>
Wed, 1 Aug 2012 13:15:37 +0000 (15:15 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Wed, 1 Aug 2012 13:15:37 +0000 (15:15 +0200)
src/tincctl.c

index 1cdcf58..188db92 100644 (file)
@@ -738,7 +738,8 @@ static int cmd_stop(int argc, char *argv[]) {
 }
 
 static int cmd_restart(int argc, char *argv[]) {
-       return cmd_stop(argc, argv) ?: cmd_start(argc, argv);
+       cmd_stop(argc, argv);
+       return cmd_start(argc, argv);
 }
 
 static int cmd_reload(int argc, char *argv[]) {