From 07a5243d8a78dddac98040741cd204f382f6012e Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 14 Feb 2023 10:41:44 +0000 Subject: Prepare for 0.5.4.0; add start and stop subcommands to s6-rc Signed-off-by: Laurent Bercot --- src/s6-rc/s6-rc.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') 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) ; -- cgit v1.2.3