mirror of
https://github.com/troglobit/finit.git
synced 2026-11-01 13:10:32 +00: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 parent
4d472273e1
commit
334d4a708a
1 file changed
+1
-1
+1
-1
@@ -1538,7 +1538,7 @@ int service_register(int type, char *cfg, struct rlimit rlimit[], char *file)
|
|||||||
id = "";
|
id = "";
|
||||||
|
|
||||||
levels = conf_parse_runlevels(runlevels);
|
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.",
|
dbg("Skipping %s%s%s, bootstrap is completed.",
|
||||||
name, id[0] ? ":" : "", id[0] ? id : "");
|
name, id[0] ? ":" : "", id[0] ? id : "");
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in new issue
Block a user