X-Git-Url: https://git.llucax.com/software/pymin.git/blobdiff_plain/a3a2c50243192ab245da97d135e3628e667a7617..a254291faa01afcac88c60cd6d8847043ccc6adc:/pymin/services/vrrp/__init__.py?ds=sidebyside 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