mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Added additional output to service status checker
This commit is contained in:
parent
238e4adba2
commit
7af3bdc89e
1 changed files with 2 additions and 0 deletions
|
@ -108,6 +108,8 @@ def _get_service_status(name):
|
||||||
running = True
|
running = True
|
||||||
elif cleaned_status_stdout.find("start") != -1 and cleaned_status_stdout.find("not") == -1:
|
elif cleaned_status_stdout.find("start") != -1 and cleaned_status_stdout.find("not") == -1:
|
||||||
running = True
|
running = True
|
||||||
|
elif 'could not access pid file' in cleaned_status_stdout:
|
||||||
|
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:
|
||||||
|
|
Loading…
Reference in a new issue