mirror of
https://github.com/troglobit/finit.git
synced 2026-11-01 13:10:32 +00:00
The pidfile plugin requires /var/run, so depend on bootmisc
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
ea21bfc4c9
commit
79b95daf3a
1 file changed
+5
@@ -117,6 +117,10 @@ static void pidfile_init(void *arg)
|
|||||||
|
|
||||||
static struct context pidfile_ctx;
|
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 = {
|
static plugin_t plugin = {
|
||||||
.hook[HOOK_BASEFS_UP] = { .arg = &pidfile_ctx, .cb = pidfile_init },
|
.hook[HOOK_BASEFS_UP] = { .arg = &pidfile_ctx, .cb = pidfile_init },
|
||||||
.hook[HOOK_SVC_RECONF] = { .cb = pidfile_reconf },
|
.hook[HOOK_SVC_RECONF] = { .cb = pidfile_reconf },
|
||||||
@@ -124,6 +128,7 @@ static plugin_t plugin = {
|
|||||||
.cb = pidfile_callback,
|
.cb = pidfile_callback,
|
||||||
.flags = PLUGIN_IO_READ,
|
.flags = PLUGIN_IO_READ,
|
||||||
},
|
},
|
||||||
|
.depends = { "bootmisc", },
|
||||||
};
|
};
|
||||||
|
|
||||||
PLUGIN_INIT(plugin_init)
|
PLUGIN_INIT(plugin_init)
|
||||||
|
|||||||
Reference in new issue
Block a user