From 5bf8415b3d6c8029577f5681ef6ccfcde9e4eca4 Mon Sep 17 00:00:00 2001 From: Dave Coutu Date: Fri, 21 Sep 2012 14:52:32 -0400 Subject: [PATCH] Added cases for 'dead but subsys locked' status --- service | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/service b/service index 0d918d49035..8981a7e54f0 100755 --- a/service +++ b/service @@ -101,6 +101,8 @@ def _get_service_status(name, pattern): if running == None: if rc == 3: running = False + if rc == 2: + running = False elif rc == 0: running = True @@ -120,6 +122,8 @@ def _get_service_status(name, pattern): running = False elif 'is dead and pid file exists' in cleanout: running = False + elif 'dead but subsys locked' in cleanout: + running = False # if the job status is still not known check it by special conditions if running == None: