mirror of
https://github.com/troglobit/finit.git
synced 2026-11-15 19:13:11 +00:00
doc: update with $MAINPID notice
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 file changed
+5
-2
+5
-2
@@ -918,10 +918,13 @@ configurable with the following options:
|
|||||||
`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`. Like
|
||||||
|
systemd, Finit sets `$MAINPID` as a convenience to scripts, which in
|
||||||
|
effect also allow `reload:kill -HUP $MAINPID`
|
||||||
* `stop:script [args]` -- some services may require alternate methods
|
* `stop:script [args]` -- some services may require alternate methods
|
||||||
to be stopped. When `stop:script` is defined it is preferred over
|
to be stopped. When `stop:script` is defined it is preferred over
|
||||||
`SIGTERM` and `stop`, for `service` and `sysv` stanzas, respectively
|
`SIGTERM` and `stop` for `service` and `sysv` stanzas, respectively.
|
||||||
|
Similar to `reload:script`, Finit sets `$MAINPID`
|
||||||
|
|
||||||
> [!CAUTION]
|
> [!CAUTION]
|
||||||
> Both `reload:script` and `stop:script` are called as PID 1, without
|
> Both `reload:script` and `stop:script` are called as PID 1, without
|
||||||
|
|||||||
Reference in new issue
Block a user