Commit 9bb83067 by Dave Coutu Committed by Dave Coutu

Added cases for 'dead but subsys locked' status

parent b8c4bb9e
...@@ -101,6 +101,8 @@ def _get_service_status(name, pattern): ...@@ -101,6 +101,8 @@ def _get_service_status(name, pattern):
if running == None: if running == None:
if rc == 3: if rc == 3:
running = False running = False
if rc == 2:
running = False
elif rc == 0: elif rc == 0:
running = True running = True
...@@ -120,6 +122,8 @@ def _get_service_status(name, pattern): ...@@ -120,6 +122,8 @@ def _get_service_status(name, pattern):
running = False running = False
elif 'is dead and pid file exists' in cleanout: elif 'is dead and pid file exists' in cleanout:
running = False 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 the job status is still not known check it by special conditions
if running == None: if running == None:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment