Ignore after dependencies for shutdown when not in the runlevel.
This commit is contained in:
parent
cc14b55414
commit
2cf24fe793
@ -189,8 +189,10 @@ valid_service(const char *runlevel, const char *service, const char *type)
|
|||||||
|
|
||||||
if (rc_service_in_runlevel(service, runlevel))
|
if (rc_service_in_runlevel(service, runlevel))
|
||||||
return true;
|
return true;
|
||||||
if (strcmp(runlevel, RC_LEVEL_SHUTDOWN) == 0 ||
|
if (strcmp(runlevel, RC_LEVEL_SYSINIT) == 0)
|
||||||
strcmp(runlevel, RC_LEVEL_SYSINIT) == 0)
|
return false;
|
||||||
|
if (strcmp(runlevel, RC_LEVEL_SHUTDOWN) == 0 &&
|
||||||
|
strcmp(type, "iafter") == 0)
|
||||||
return false;
|
return false;
|
||||||
if (strcmp(runlevel, bootlevel) != 0) {
|
if (strcmp(runlevel, bootlevel) != 0) {
|
||||||
if (rc_service_in_runlevel(service, bootlevel))
|
if (rc_service_in_runlevel(service, bootlevel))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user