From 48f677c3a0d6fd44fc0664907420204f15c7ce92 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Wed, 6 May 2026 23:24:10 +0200 Subject: [PATCH] keventd: signal readiness via pidfile after coldplug Signed-off-by: Joachim Wiberg --- src/conf.c | 2 +- src/keventd.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/conf.c b/src/conf.c index f4329e46..8127569d 100644 --- a/src/conf.c +++ b/src/conf.c @@ -2691,7 +2691,7 @@ int conf_init(uev_ctx_t *ctx) conf_save_service(SVC_TYPE_SERVICE, "keventd", "keventd.conf", "\tdescription = \"kernel event daemon\"\n" "\trunlevel = \"S0123456789\"\n" - "\tnotify = \"none\"\n" + "\tnotify = \"pid\"\n" "\tcgroup init {}\n" "\tcommand = \"" FINIT_EXECPATH_ "/keventd" #ifdef HAVE_HOTPLUG_PLUGIN diff --git a/src/keventd.c b/src/keventd.c index 6552bb68..b4fd5f24 100644 --- a/src/keventd.c +++ b/src/keventd.c @@ -539,6 +539,7 @@ int main(int argc, char *argv[]) if (do_coldplug) coldplug(); + pidfile(NULL); logit(LOG_NOTICE, "keventd v%s started, waiting for events...", KEVENTD_VERSION); while (running) {