initctl: Support for stop/start services by name:id

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2015-11-26 21:22:05 +01:00
1 parent 1f88e1ff8a
commit 263e23a0df
5 files changed
+72 -37

No files matched your search

+17 -16
View File
@@ -586,24 +586,25 @@ 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
-d, --debug Debug initctl (client)
-v, --verbose Verbose output
-h, --help This help text
Commands:
debug Toggle Finit (daemon) debug
emit <EV> Emit an event. Can be a predefined event: RELOAD, STOP,
START, or a custom string to match the event list in a
service stanza, e.g: GW:UP, IFUP:IFNAME, IFDN:IFNAME,
where IFNAME is the interface name, e.g. eth0
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
start <JOB|NAME> Start stopped job or service
stop <JOB|NAME> Stop/Pause running job or service
restart <JOB|NAME> Restart (stop/start) job or service
reload <JOB|NAME> Reload (SIGHUP) job or service
version Show Finit version
debug Toggle Finit (daemon) debug
help This help text
emit <EV> Emit event; a predefined event: RELOAD, STOP, START
or a custom string matching an event in a service
stanza, e.g: GW:UP, IFUP:IFNAME, IFDN:IFNAME. Where
IFNAME is the interface name, e.g. eth0
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
start <JOB|NAME>[:ID] Start service by job# or name, with optional ID
stop <JOB|NAME>[:ID] Stop/Pause a running service by job# or name
restart <JOB|NAME>[:ID] Restart (stop/start) service by job# or name
reload <JOB|NAME>[:ID] Reload (SIGHUP) service by job# or name
version Show Finit version
```
The `emit <EV>` command can be used to send events to Finit. Built-in