Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use service instead of /etc/init.d/ in watchdog
Use "service flumotion stop/start" instead of "/etc/init.d/flumotion stop/start"

Refer: http://askubuntu.com/questions/2075/whats-the-difference-between-service-and-etc-init-d
  • Loading branch information
ApsOps committed Jul 27, 2014
1 parent 0058cbf commit 6f64662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/watchdog/watchdog.py
Expand Up @@ -307,7 +307,7 @@ def restart_full(self):
logging.info("Would restart flumotion")
return
logging.error('Starting the whole of flumotion')
return subprocess.call('/etc/init.d/flumotion stop; sleep 5; /etc/init.d/flumotion start; kill -9 %s' % os.getpid(), shell=True)
return subprocess.call('service flumotion stop; sleep 5; service flumotion start; kill -9 %s' % os.getpid(), shell=True)

def restart_component(self, component, count=Counter()):
"""Restart an individual flumotion component."""
Expand Down

0 comments on commit 6f64662

Please sign in to comment.