mirror of
https://github.com/troglobit/finit.git
synced 2026-11-09 16:21:24 +00:00
doc: document new stop:script support
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 file changed
+7
-4
+7
-4
@@ -916,14 +916,17 @@ configurable with the following options:
|
|||||||
has *crashed*, if this option is set the system is rebooted
|
has *crashed*, if this option is set the system is rebooted
|
||||||
* `oncrash:script` -- similarly, but instead of rebooting, call the
|
* `oncrash:script` -- similarly, but instead of rebooting, call the
|
||||||
`post:script` action with exit code `crashed`, see below
|
`post:script` action with exit code `crashed`, see below
|
||||||
* `reload:script args` -- some services do not support `SIGHUP` but
|
* `reload:script [args]` -- some services do not support `SIGHUP` but
|
||||||
may have other ways to update the configuration of a running daemon.
|
may have other ways to update the configuration of a running daemon.
|
||||||
When `reload:script` is defined it is preferred over `SIGHUP`
|
When `reload:script` is defined it is preferred over `SIGHUP`
|
||||||
|
* `stop:script [args]` -- some services may require alternate methods
|
||||||
|
to be stopped. When `stop:script` is defined it is preferred over
|
||||||
|
`SIGTERM` and `stop`, for `service` and `sysv` stanzas, respectively
|
||||||
|
|
||||||
> [!CAUTION]
|
> [!CAUTION]
|
||||||
> The `reload:script` is called in as PID 1, without any timeout!
|
> Both `reload:script` and `stop:script` are called as PID 1, without
|
||||||
> Meaning, it is up to you to ensure this script is not blocking
|
> any timeout! Meaning, it is up to you to ensure the script is not
|
||||||
> for seconds at a time or never terminates.
|
> blocking for seconds at a time or never terminates.
|
||||||
|
|
||||||
When stopping a service (run/task/sysv/service), either manually or when
|
When stopping a service (run/task/sysv/service), either manually or when
|
||||||
moving to another runlevel, Finit starts by sending `SIGTERM`, to allow
|
moving to another runlevel, Finit starts by sending `SIGTERM`, to allow
|
||||||
|
|||||||
Reference in new issue
Block a user