]> git.llucax.com Git - software/pymin.git/commitdiff
Use procman.restart() to restart vrrp service.
authorLeandro Lucarella <llucax@gmail.com>
Sun, 18 Nov 2007 18:12:57 +0000 (15:12 -0300)
committerLeandro Lucarella <llucax@gmail.com>
Sun, 18 Nov 2007 18:12:57 +0000 (15:12 -0300)
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