about summary refs log tree commit diff
path: root/nitroctl.c
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2023-12-25 18:36:09 +0100
committerLeah Neukirchen <leah@vuxu.org>2023-12-25 18:36:09 +0100
commit7c2b6f3d3dd2c3a44293bfa60d1e44cf8720e420 (patch)
treeede47411b1013215204b4888b9fb74471b05ce3c /nitroctl.c
parentc98535fc808f4e1e22ec57b9286cc1aafc0206f2 (diff)
downloadnitro-7c2b6f3d3dd2c3a44293bfa60d1e44cf8720e420.tar.gz
nitro-7c2b6f3d3dd2c3a44293bfa60d1e44cf8720e420.tar.xz
nitro-7c2b6f3d3dd2c3a44293bfa60d1e44cf8720e420.zip
nitroctl: tweaks
Diffstat (limited to 'nitroctl.c')
-rw-r--r--nitroctl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/nitroctl.c b/nitroctl.c
index cce867a..0db39e7 100644
--- a/nitroctl.c
+++ b/nitroctl.c
@@ -139,8 +139,7 @@ int
 main(int argc, char *argv[])
 {
 	if (argc < 2 || (
-	    strcmp(argv[1], "l") != 0 && strcmp(argv[1], "level") != 0 &&
-	    strcmp(argv[1], "s") != 0 && strcmp(argv[1], "status") != 0 &&
+	    strcmp(argv[1], "l") != 0 && strcmp(argv[1], "list") != 0 &&
 	    strcmp(argv[1], "d") != 0 && strcmp(argv[1], "down") != 0 &&
 	    strcmp(argv[1], "u") != 0 && strcmp(argv[1], "up") != 0 &&
 	    strcmp(argv[1], "p") != 0 && strcmp(argv[1], "pause") != 0 &&
@@ -155,7 +154,7 @@ main(int argc, char *argv[])
 	    strcmp(argv[1], "2") != 0 &&
 	    strcmp(argv[1], "check") != 0 &&
 	    strcmp(argv[1], "start") != 0 &&
-	    strcmp(argv[1], "restart") != 0 &&
+	    strcmp(argv[1], "r") != 0 && strcmp(argv[1], "restart") != 0 &&
 	    strcmp(argv[1], "stop") != 0 &&
 	    strcmp(argv[1], "Reboot") != 0 &&
 	    strcmp(argv[1], "Shutdown") != 0)) {