Skip to content

Commit

Permalink
Fix #1426.
Browse files Browse the repository at this point in the history
  • Loading branch information
kiarn committed Jan 31, 2023
1 parent a663fec commit db673db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/services/managers/sysv_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ def get_service(self, _id):

svc = Service(self)
svc.id = svc.name = _id
svc.enabled = True
svc.static = False
try:
svc.running = self._run_action(_id, 'status')
svc.state = 'running' if svc.running else 'stopped'
svc.enabled = True
svc.static = False
except Exception as e:
svc.running = False
return svc
Expand Down

0 comments on commit db673db

Please sign in to comment.