Follow-up to e00fda5: skip bootstrap-only services when not in bootstrap

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-04-24 16:28:49 +02:00
parent 4d472273e1
commit 334d4a708a
+1 -1
View File
@@ -1538,7 +1538,7 @@ int service_register(int type, char *cfg, struct rlimit rlimit[], char *file)
id = "";
levels = conf_parse_runlevels(runlevels);
if (runlevel != INIT_LEVEL && !ISOTHER(levels, 0)) {
if (runlevel != INIT_LEVEL && !ISOTHER(levels, INIT_LEVEL)) {
dbg("Skipping %s%s%s, bootstrap is completed.",
name, id[0] ? ":" : "", id[0] ? id : "");
return 0;