Let plugins hook into service startup to notify 3rd party daemon.

This commit adds support for calling plugin hooks when all services
have been started properly. Useful for, e.g., a 3rd party service
monitor to trigger further events on.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2012-09-27 15:25:10 +02:00
parent 103bf33b3c
commit 0d70fa4cf0
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -42,6 +42,7 @@ typedef enum {
HOOK_BASEFS_UP = 0,
HOOK_NETWORK_UP,
HOOK_SYSTEM_UP,
HOOK_SVC_UP,
HOOK_SHUTDOWN,
HOOK_MAX_NUM
} hook_point_t;
+2 -1
View File
@@ -400,7 +400,8 @@ void svc_start_all(void)
svc_reload(svc);
}
/* XXX: Hook point for plugins. */
_d("Running svc up hooks ...");
run_hooks(HOOK_SVC_UP);
}