summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-02-14 10:41:44 +0000
committerLaurent Bercot <ska@appnovation.com>2023-02-14 10:41:44 +0000
commit07a5243d8a78dddac98040741cd204f382f6012e (patch)
tree6b33983d841a1079608625ea6e8da06b31d6757c /src
parentbbf31e578acd6b6e860fc2b58c1fc910e81c00dd (diff)
downloads6-rc-07a5243d8a78dddac98040741cd204f382f6012e.tar.xz
Prepare for 0.5.4.0; add start and stop subcommands to s6-rc
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
-rw-r--r--src/s6-rc/s6-rc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/s6-rc/s6-rc.c b/src/s6-rc/s6-rc.c
index 0a14c32..2b13e8f 100644
--- a/src/s6-rc/s6-rc.c
+++ b/src/s6-rc/s6-rc.c
@@ -442,6 +442,8 @@ static inline unsigned int parse_command (char const *command)
"listall",
"diff",
"change",
+ "start",
+ "stop",
0
} ;
unsigned int i = lookup(command_table, command) ;
@@ -506,6 +508,14 @@ int main (int argc, char const *const *argv)
print_help() ;
return 0 ;
}
+ if (what == 5)
+ {
+ what = 4 ; up = 1 ; prune = 0 ;
+ }
+ else if (what == 6)
+ {
+ what = 4 ; up = 0 ; prune = 0 ;
+ }
livelen = strlen(live) ;