]> git.llucax.com Git - software/pymin.git/blobdiff - pymin/services/vrrp/__init__.py
Use procman.restart() to restart vrrp service.
[software/pymin.git] / pymin / services / vrrp / __init__.py
index adde0b32a355d3d53209911b2c3bb48ed28ebd68..2ea4d2e1b05f967275d7fa84a23ba0045ab2dd98 100644 (file)
@@ -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