mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
dbus: notify externals when reconfiguration completes
initctl reload freezes conditions to the old generation and each owner re-asserts. Finit's own providers do this in-process; an external provider whose conditions are generation files, rather than the oneshot symlinks keventd uses, has no way to know the moment. Emit Manager1.ConfigReloaded when reconfiguration completes. keventd needs no subscriber: its conditions are symlinks to the reconf marker itself, so they read the current generation by construction and never flux, which the device bus test now pins down. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -133,3 +133,8 @@ case "$(cat /tmp/dbus-devauthz.out)" in
|
||||
*AccessDenied*) assert "Device1 authz fires" 0 -eq 0 ;;
|
||||
*) fail "Unexpected reply: $(cat /tmp/dbus-devauthz.out)" ;;
|
||||
esac
|
||||
|
||||
say "Conditions are generation symlinks, unaffected by initctl reload"
|
||||
run "initctl reload"
|
||||
retry 'assert_cond "class/net/dummy0"'
|
||||
assert "class/net/dummy0 still asserted after reload" 0 -eq 0
|
||||
|
||||
Reference in New Issue
Block a user