improved negative service status handling

This is still far from optimal but the nature of the initscripts does not really allow for much better.
fixes #20028
pull/20054/head
Brian Coca 8 years ago
parent 74f07c66be
commit 0ef60aeacb

@ -625,11 +625,9 @@ class LinuxService(Service):
cleanout = status_stdout.lower().replace(self.name.lower(), '')
if "stop" in cleanout:
self.running = False
elif "run" in cleanout and "not" in cleanout:
self.running = False
elif "run" in cleanout and "not" not in cleanout:
self.running = True
elif "start" in cleanout and "not" not in cleanout:
elif "run" in cleanout:
self.running = ("not " in cleanout)
elif "start" in cleanout and "not " not in cleanout:
self.running = True
elif 'could not access pid file' in cleanout:
self.running = False

Loading…
Cancel
Save