From 1a22b4f0aac167125b0222af0b34cee28d9acb0f Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Wed, 24 Mar 2021 13:13:35 +0100 Subject: [PATCH] plugins: dbus: allow in all runlevels and start already in 'S' This plugin should be able to start much earlier than on network UP, it uses a UNIX domain socket to communicate so loopback should not be needed. Also, Finit supports runvels up to 9 (0 and 6 are special), so allow dbus to run in all these runlevels. It is up to the user/OS to set any policy for what runlevels to use. Signed-off-by: Joachim Wiberg --- plugins/dbus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/dbus.c b/plugins/dbus.c index 848e6e4c..aa231bfd 100644 --- a/plugins/dbus.c +++ b/plugins/dbus.c @@ -59,7 +59,7 @@ static void setup(void *arg) remove("/var/run/dbus/pid"); /* Register service with Finit */ - snprintf(line, sizeof(line), "[S12345] @%s:%s %s %s -- %s", + snprintf(line, sizeof(line), "[S12345789] @%s:%s %s %s -- %s", DAEMONUSER, DAEMONUSER, cmd, ARGS, DESC); if (service_register(SVC_TYPE_SERVICE, line, global_rlimit, NULL)) _pe("Failed registering %s", DAEMON); @@ -70,7 +70,7 @@ static void setup(void *arg) static plugin_t plugin = { .name = __FILE__, - .hook[HOOK_NETWORK_UP] = { + .hook[HOOK_BASEFS_UP] = { .cb = setup }, .depends = { "bootmisc", },