mirror of
https://github.com/troglobit/finit.git
synced 2026-11-17 19:30:29 +00:00
keventd: touch the PID file after SIGHUP
After a SIGHUP, from initctl reload or a changed service, Finit waits for a pid-notify daemon to recreate or touch its PID file to reassert readiness. keventd only reloaded its rules, so with a daemon-owned PID file it never did. Touch it with pidfile() after reloading the rules, once keventd has created it. With -c that is after the coldplug queue has drained. Fixes #503 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
3 files changed
+17
No files matched your search
@@ -163,6 +163,9 @@ All relevant changes are documented in this file.
|
||||
- Fix #512: `--` in the `command` of a block-format .conf, it was taken as the
|
||||
start of the description, so `command = "cmd -- arg"` ran `cmd` with
|
||||
description `arg`. Found by Alexandru Paniș
|
||||
- Fix #503: keventd did not touch its PID file after SIGHUP, so with a
|
||||
daemon-owned PID file Finit never saw it reassert readiness after a
|
||||
reload. Reported by Aaron Andersen
|
||||
- Fix a command whose name starts like a service option, e.g. `logger` or
|
||||
`pidof`. It was taken as the `log` or `pid` option and the next argument
|
||||
ran as the command, which also broke the `logger` example in finit.conf(5)
|
||||
|
||||
Reference in new issue
Block a user