1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Added cases for 'dead but subsys locked' status

This commit is contained in:
Dave Coutu 2012-09-21 14:52:32 -04:00 committed by Dave Coutu
parent b8c4bb9e6e
commit 9bb83067bc

View file

@ -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: