mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-25 07:56:38 +00:00
Merge pull request #566 from jeremysmitherman/service-no-pid
Added additional output to service status checker
This commit is contained in:
@@ -108,6 +108,8 @@ def _get_service_status(name):
|
||||
running = True
|
||||
elif cleaned_status_stdout.find("start") != -1 and cleaned_status_stdout.find("not") == -1:
|
||||
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 running == None:
|
||||
|
||||
Reference in New Issue
Block a user