Skip to content

Commit

Permalink
[services] upstart status fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Oct 17, 2010
1 parent 9400e92 commit 18d77e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/services_upstart/main.py
Expand Up @@ -42,6 +42,8 @@ def list_all(self):

def get_status(self, name):
s = shell('service ' + name + ' status')
if 'start/running' in s:
return 'running'
return 'running' if 'is running' in s else 'stopped'

def start(self, name):
Expand Down

0 comments on commit 18d77e9

Please sign in to comment.