aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-11-04 09:32:21 +0000
committerRoy Marples <roy@marples.name>2008-11-04 09:32:21 +0000
commit2cf24fe7934f329d23282ad66f2d448689e58b2e (patch)
treeeafa66a01d585386f2a0e1e9e8ed5e6e32dc8f6f /src
parentcc14b5541401dee18064417e82eab765410da95b (diff)
Ignore after dependencies for shutdown when not in the runlevel.
Diffstat (limited to 'src')
-rw-r--r--src/librc/librc-depend.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/librc/librc-depend.c b/src/librc/librc-depend.c
index 62d7044c..7fb6b907 100644
--- a/src/librc/librc-depend.c
+++ b/src/librc/librc-depend.c
@@ -189,9 +189,11 @@ valid_service(const char *runlevel, const char *service, const char *type)
if (rc_service_in_runlevel(service, runlevel))
return true;
- if (strcmp(runlevel, RC_LEVEL_SHUTDOWN) == 0 ||
- strcmp(runlevel, RC_LEVEL_SYSINIT) == 0)
- return false;
+ if (strcmp(runlevel, RC_LEVEL_SYSINIT) == 0)
+ return false;
+ if (strcmp(runlevel, RC_LEVEL_SHUTDOWN) == 0 &&
+ strcmp(type, "iafter") == 0)
+ return false;
if (strcmp(runlevel, bootlevel) != 0) {
if (rc_service_in_runlevel(service, bootlevel))
return true;