From 525aef10dd36d36b79d206b756ae6e964525ccfa Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sun, 6 Sep 2015 20:45:56 +0200 Subject: [PATCH] Add 'initctl show' as alias for 'initctl status', for convenience. Signed-off-by: Joachim Nilsson --- initctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/initctl.c b/initctl.c index 19dc137b..1f402d3a 100644 --- a/initctl.c +++ b/initctl.c @@ -213,7 +213,7 @@ static int usage(int rc) " IFNAME is the interface name, e.g. eth0\n" " reload Reload *.conf in /etc/finit.d/ and activate changes\n" " runlevel [0-9] Show or set runlevel: 0 halt, 6 reboot\n" - " status Show status of services\n" + " status | show Show status of services\n" " start Start stopped job or service\n" " stop Stop running job or service\n" " restart Restart (stop/start) job or service\n" @@ -232,6 +232,7 @@ int main(int argc, char *argv[]) { "reload", do_reload }, { "runlevel", do_runlevel }, { "status", show_status }, + { "show", show_status }, /* Convenience alias */ { "start", do_start }, { "stop", do_stop }, { "restart", do_restart },