mirror of
https://github.com/troglobit/finit.git
synced 2026-10-13 10:14:47 +00:00
doc: update with $MAINPID notice
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
+5
-2
@@ -918,10 +918,13 @@ configurable with the following options:
|
||||
`post:script` action with exit code `crashed`, see below
|
||||
* `reload:script [args]` -- some services do not support `SIGHUP` but
|
||||
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
|
||||
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]
|
||||
> Both `reload:script` and `stop:script` are called as PID 1, without
|
||||
|
||||
Reference in New Issue
Block a user