diff --git a/README.md b/README.md index 647b0079..427e4d56 100644 --- a/README.md +++ b/README.md @@ -349,25 +349,36 @@ not return until the given command has fully completed. Usage: initctl [OPTIONS] [COMMAND] Options: - -d, --debug Debug initctl (client) -v, --verbose Verbose output -h, --help This help text Commands: debug Toggle Finit (daemon) debug help This help text - reload Reload *.conf in /etc/finit.d/ and activate changes - runlevel [0-9] Show or set runlevel: 0 halt, 6 reboot - status | show Show status of services, default command + version Show Finit version + + list List all .conf in /etc/finit.d/ + enable Enable .conf in /etc/finit.d/available/ + disable Disable .conf in /etc/finit.d/[enabled/] + reload Reload *.conf in /etc/finit.d/ (activates changes) + cond set Set (assert) condition => +COND cond clear Clear (deassert) condition => -COND cond show Show condition status cond dump Dump all conditions and their status + + log [NAME] Show ten last Finit, or NAME, messages from syslog start [:ID] Start service by job# or name, with optional ID stop [:ID] Stop/Pause a running service by job# or name restart [:ID] Restart (stop/start) service by job# or name - reload [:ID] Reload (SIGHUP) service by job# or name - version Show Finit version + status | show Show status of services, default command + + runlevel [0-9] Show or set runlevel: 0 halt, 6 reboot + reboot Reboot system + halt Halt system + poweroff Halt and power off system + + utmp show Raw dump of UTMP/WTMP db ``` For services *not* supporting `SIGHUP` the `` notation in the .conf diff --git a/src/initctl.c b/src/initctl.c index 2f66dd94..ad8157e6 100644 --- a/src/initctl.c +++ b/src/initctl.c @@ -594,6 +594,7 @@ static int usage(int rc) " enable Enable .conf in /etc/finit.d/available/\n" " disable Disable .conf in /etc/finit.d/[enabled/]\n" " reload Reload *.conf in /etc/finit.d/ (activates changes)\n" +// " reload [:ID] Reload (SIGHUP) service by job# or name\n" "\n" " cond set Set (assert) condition => +COND\n" " cond clear Clear (deassert) condition => -COND\n"