mirror of
https://github.com/troglobit/finit.git
synced 2026-11-19 19:40:50 +00:00
Let hook conditions be oneshot, prevents flux on reload
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
a9b9631098
commit
8ef216af62
1 file changed
+1
-1
+1
-1
@@ -210,7 +210,7 @@ void plugin_run_hook(hook_point_t no, void *arg)
|
|||||||
if (HOOK_SVC_START == no)
|
if (HOOK_SVC_START == no)
|
||||||
last = no;
|
last = no;
|
||||||
|
|
||||||
cond_set(hook_cond[no]);
|
cond_set_oneshot(hook_cond[no]);
|
||||||
service_step_all(SVC_TYPE_RUNTASK);
|
service_step_all(SVC_TYPE_RUNTASK);
|
||||||
|
|
||||||
if (HOOK_SVC_START == no)
|
if (HOOK_SVC_START == no)
|
||||||
|
|||||||
Reference in new issue
Block a user