aboutsummaryrefslogtreecommitdiff
path: root/src/rc/runscript.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-21 13:04:29 +0000
committerRoy Marples <roy@marples.name>2008-03-21 13:04:29 +0000
commit85a6addd235e1c13d2e67e5e9b6d4c963b47140d (patch)
treedcff86dca7f23f80f5fed7374cb243a2b0e70812 /src/rc/runscript.c
parent4079b4d65d6f8f8b9f8b29bfdce2abc773cdabad (diff)
Only test crashed services if we can see pid 1.
Diffstat (limited to 'src/rc/runscript.c')
-rw-r--r--src/rc/runscript.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc/runscript.c b/src/rc/runscript.c
index b0d6fca8..9263cea1 100644
--- a/src/rc/runscript.c
+++ b/src/rc/runscript.c
@@ -559,7 +559,7 @@ static RC_SERVICE svc_status(void)
snprintf(status, sizeof(status), "inactive");
e = &ewarn;
} else if (state & RC_SERVICE_STARTED) {
- if (rc_service_daemons_crashed(service)) {
+ if (_rc_findpid1() && rc_service_daemons_crashed(service)) {
snprintf(status, sizeof (status), "crashed");
e = &eerror;
} else