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

Merge pull request #1872 from runekaagaard/devel

Service mod.: Proper(?) handling of return code 69
This commit is contained in:
Michael DeHaan 2013-01-18 15:09:58 -08:00
commit bcdbb19549

View file

@ -313,9 +313,7 @@ class LinuxService(Service):
# if the job status is still not known check it by response code # if the job status is still not known check it by response code
if self.running == None: if self.running == None:
if rc == 3: if rc in [2, 3, 69]:
self.running = False
if rc == 2:
self.running = False self.running = False
elif rc == 0: elif rc == 0:
self.running = True self.running = True