mirror of
https://github.com/troglobit/finit.git
synced 2026-10-14 10:19:36 +00:00
Fix #18: Add support for calling run/tasks on HOOK points
This patch implements support for calling run/task jobs on the built-in `HOOK_*` points in Finit. To map each HOOK point to a condition a new classification was made, as shown in plugin.h and in the example below. task <hook/mount/root> /sbin/attachubi.sh # run in parallel with other tasks/services run <hook/net/up> /sbin/dosomething.sh # run in sequence with other commands Please note, only rudimentary tested. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
e841984a4e
commit
9e31bd8a23
4 files changed
+60
-22
No files matched your search
+1
-1
@@ -114,7 +114,7 @@ static void pidfile_reconf(void *_null)
|
||||
}
|
||||
|
||||
if (restart)
|
||||
service_step_all(SVC_TYPE_SERVICE | SVC_TYPE_INETD);
|
||||
service_step_all(SVC_TYPE_SERVICE | SVC_TYPE_RUNTASK | SVC_TYPE_INETD);
|
||||
|
||||
} while (restart);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user