diff --git a/doc/config.md b/doc/config.md index dec554cd..ad21926e 100644 --- a/doc/config.md +++ b/doc/config.md @@ -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