mirror of
https://github.com/troglobit/finit.git
synced 2026-11-27 20:48:24 +00:00
keventd: signal readiness via pidfile after coldplug
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -2691,7 +2691,7 @@ int conf_init(uev_ctx_t *ctx)
|
|||||||
conf_save_service(SVC_TYPE_SERVICE, "keventd", "keventd.conf",
|
conf_save_service(SVC_TYPE_SERVICE, "keventd", "keventd.conf",
|
||||||
"\tdescription = \"kernel event daemon\"\n"
|
"\tdescription = \"kernel event daemon\"\n"
|
||||||
"\trunlevel = \"S0123456789\"\n"
|
"\trunlevel = \"S0123456789\"\n"
|
||||||
"\tnotify = \"none\"\n"
|
"\tnotify = \"pid\"\n"
|
||||||
"\tcgroup init {}\n"
|
"\tcgroup init {}\n"
|
||||||
"\tcommand = \"" FINIT_EXECPATH_ "/keventd"
|
"\tcommand = \"" FINIT_EXECPATH_ "/keventd"
|
||||||
#ifdef HAVE_HOTPLUG_PLUGIN
|
#ifdef HAVE_HOTPLUG_PLUGIN
|
||||||
|
|||||||
@@ -539,6 +539,7 @@ int main(int argc, char *argv[])
|
|||||||
if (do_coldplug)
|
if (do_coldplug)
|
||||||
coldplug();
|
coldplug();
|
||||||
|
|
||||||
|
pidfile(NULL);
|
||||||
logit(LOG_NOTICE, "keventd v%s started, waiting for events...", KEVENTD_VERSION);
|
logit(LOG_NOTICE, "keventd v%s started, waiting for events...", KEVENTD_VERSION);
|
||||||
|
|
||||||
while (running) {
|
while (running) {
|
||||||
|
|||||||
Reference in new issue
Block a user