mirror of
https://github.com/troglobit/finit.git
synced 2026-10-09 16:50:59 +07:00
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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user