corrected service condition

This commit is contained in:
Brian Coca 2017-01-09 15:44:37 -05:00
commit afbe3bd63f
2 changed files with 3 additions and 1 deletions

View file

@ -626,7 +626,7 @@ class LinuxService(Service):
if "stop" in cleanout:
self.running = False
elif "run" in cleanout:
self.running = ("not " in cleanout)
self.running = not ("not " in cleanout)
elif "start" in cleanout and "not " not in cleanout:
self.running = True
elif 'could not access pid file' in cleanout: