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
@@ -39,6 +39,14 @@ run "ip link del probe0"
|
||||
sep "keventd readiness"
|
||||
retry 'assert_ready "keventd"' 50 0.2
|
||||
|
||||
# Finit does not touch a daemon-owned pidfile, so keventd must do it
|
||||
# after SIGHUP to reassert readiness, see issue #503. Signalled with
|
||||
# kill to keep Finit out of it.
|
||||
sep "keventd touches its pidfile on SIGHUP"
|
||||
run "touch -d '2000-01-01 00:00' /run/keventd.pid"
|
||||
run "kill -HUP $(texec cat /run/keventd.pid)"
|
||||
retry "test \$(texec stat -c %Y /run/keventd.pid) -gt 1000000000" 10 0.2
|
||||
|
||||
sep "interface add asserts <class/net/dummy0>"
|
||||
cat >> "$SYSROOT$FINIT_CONF" <<EOF
|
||||
service serv {
|
||||
|
||||
Reference in new issue
Block a user