aboutsummaryrefslogtreecommitdiff
path: root/src/rc/runscript.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc/runscript.c')
-rw-r--r--src/rc/runscript.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rc/runscript.c b/src/rc/runscript.c
index 9263cea1..d4500044 100644
--- a/src/rc/runscript.c
+++ b/src/rc/runscript.c
@@ -559,8 +559,10 @@ static RC_SERVICE svc_status(void)
snprintf(status, sizeof(status), "inactive");
e = &ewarn;
} else if (state & RC_SERVICE_STARTED) {
- if (_rc_findpid1() && rc_service_daemons_crashed(service)) {
- snprintf(status, sizeof (status), "crashed");
+ if (_rc_can_find_pids() &&
+ rc_service_daemons_crashed(service))
+ {
+ snprintf(status, sizeof(status), "crashed");
e = &eerror;
} else
snprintf(status, sizeof(status), "started");