The pidfile plugin requires /var/run, so depend on bootmisc

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2016-06-06 19:44:21 +02:00
parent ea21bfc4c9
commit 79b95daf3a
+5
View File
@@ -117,6 +117,10 @@ static void pidfile_init(void *arg)
static struct context pidfile_ctx;
/*
* We require /var/run to be set up before calling pidfile_init(),
* so the bootmisc plugin must run first.
*/
static plugin_t plugin = {
.hook[HOOK_BASEFS_UP] = { .arg = &pidfile_ctx, .cb = pidfile_init },
.hook[HOOK_SVC_RECONF] = { .cb = pidfile_reconf },
@@ -124,6 +128,7 @@ static plugin_t plugin = {
.cb = pidfile_callback,
.flags = PLUGIN_IO_READ,
},
.depends = { "bootmisc", },
};
PLUGIN_INIT(plugin_init)