__ALL__ = ('VrrpHandler',)
-pid_filename = 'vrrp.pid'
-
class VrrpHandler(Restorable, ParametersHandler, ReloadHandler, RestartHandler,
ServiceHandler, TransactionalHandler):
def _service_stop(self):
try:
+ pid_filename = 'vrrpd_%(dev)s_%(id)s.pid' % self.params
pid = file(path.join(self._pid_dir, pid_filename )).read().strip()
os.kill(int(pid), SIGTERM)
except (IOError, OSError):
if __name__ == '__main__':
v = VrrpHandler()
v.set('prio','10')
- v.commit()
\ No newline at end of file
+ v.commit()
+