Add 'initctl show' as alias for 'initctl status', for convenience.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2015-09-06 20:45:56 +02:00
1 parent 57031071fb
commit 525aef10dd
1 file changed
+2 -1
+2 -1
View File
@@ -213,7 +213,7 @@ static int usage(int rc)
" IFNAME is the interface name, e.g. eth0\n" " IFNAME is the interface name, e.g. eth0\n"
" reload Reload *.conf in /etc/finit.d/ and activate changes\n" " reload Reload *.conf in /etc/finit.d/ and activate changes\n"
" runlevel [0-9] Show or set runlevel: 0 halt, 6 reboot\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 <JOB|NAME> Start stopped job or service\n" " start <JOB|NAME> Start stopped job or service\n"
" stop <JOB|NAME> Stop running job or service\n" " stop <JOB|NAME> Stop running job or service\n"
" restart <JOB|NAME> Restart (stop/start) job or service\n" " restart <JOB|NAME> Restart (stop/start) job or service\n"
@@ -232,6 +232,7 @@ int main(int argc, char *argv[])
{ "reload", do_reload }, { "reload", do_reload },
{ "runlevel", do_runlevel }, { "runlevel", do_runlevel },
{ "status", show_status }, { "status", show_status },
{ "show", show_status }, /* Convenience alias */
{ "start", do_start }, { "start", do_start },
{ "stop", do_stop }, { "stop", do_stop },
{ "restart", do_restart }, { "restart", do_restart },