Add runlevel stacking, #88
This implementation has the limitation that you cannot have a stacked runlevel and service of the same name in a runlevel.
This commit is contained in:
@ -1037,7 +1037,7 @@ main(int argc, char **argv)
|
||||
|
||||
/* Load our list of start services */
|
||||
hotplugged_services = rc_services_in_state(RC_SERVICE_HOTPLUGGED);
|
||||
start_services = rc_services_in_runlevel(newlevel ?
|
||||
start_services = rc_services_in_runlevel_stacked(newlevel ?
|
||||
newlevel : runlevel);
|
||||
if (strcmp(newlevel ? newlevel : runlevel, RC_LEVEL_SHUTDOWN) != 0 &&
|
||||
strcmp(newlevel ? newlevel : runlevel, RC_LEVEL_SYSINIT) != 0)
|
||||
|
Reference in New Issue
Block a user