From: Leandro Lucarella Date: Sun, 18 Nov 2007 18:12:57 +0000 (-0300) Subject: Use procman.restart() to restart vrrp service. X-Git-Url: https://git.llucax.com/software/pymin.git/commitdiff_plain/a254291faa01afcac88c60cd6d8847043ccc6adc?ds=sidebyside;hp=--cc Use procman.restart() to restart vrrp service. --- a254291faa01afcac88c60cd6d8847043ccc6adc diff --git a/pymin/services/vrrp/__init__.py b/pymin/services/vrrp/__init__.py index adde0b3..2ea4d2e 100644 --- a/pymin/services/vrrp/__init__.py +++ b/pymin/services/vrrp/__init__.py @@ -50,6 +50,12 @@ class VrrpHandler(Restorable, ParametersHandler, ReloadHandler, RestartHandler, def _service_stop(self): procman.stop('vrrp') + def _service_restart(self): + procinfo = procman.get('vrrp') + procinfo.command = self._command + procinfo.persist = self.params['persist'] + procman.restart('vrrp') + def __init__(self, pickle_dir='.', config_dir='.', pid_dir='.'): self._persistent_dir = pickle_dir self._pid_dir = pid_dir