doc: update with $MAINPID notice

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2025-07-08 07:00:52 +02:00
parent 167d75ac4a
commit 0a9ac65609
+5 -2
View File
@@ -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