X-Git-Url: https://git.llucax.com/software/pymin.git/blobdiff_plain/0b364a7665d79821e7bc417a97b3cbb8ad10dcc3..eefd474c44ed606a9b9afd64c31cc1fc30c8594a:/pymin/services/dhcp/__init__.py?ds=sidebyside diff --git a/pymin/services/dhcp/__init__.py b/pymin/services/dhcp/__init__.py index 7f0bb7d..de1515b 100644 --- a/pymin/services/dhcp/__init__.py +++ b/pymin/services/dhcp/__init__.py @@ -6,7 +6,7 @@ from pymin.seqtools import Sequence from pymin.dispatcher import Handler, handler, HandlerError from pymin.services.util import Restorable, ConfigWriter, InitdHandler, \ TransactionalHandler, ParametersHandler, \ - DictSubHandler + DictSubHandler, ReloadHandler __ALL__ = ('DhcpHandler',) @@ -46,8 +46,8 @@ class HostHandler(DictSubHandler): _cont_subhandler_attr = 'hosts' _cont_subhandler_class = Host -class DhcpHandler(Restorable, ConfigWriter, InitdHandler, TransactionalHandler, - ParametersHandler): +class DhcpHandler(Restorable, ConfigWriter, ReloadHandler, TransactionalHandler, + ParametersHandler, InitdHandler): r"""DhcpHandler([pickle_dir[, config_dir]]) -> DhcpHandler instance. Handles DHCP service commands for the dhcpd program. @@ -87,7 +87,7 @@ class DhcpHandler(Restorable, ConfigWriter, InitdHandler, TransactionalHandler, self._persistent_dir = pickle_dir self._config_writer_cfg_dir = config_dir self._config_build_templates() - self._restore() + InitdHandler.__init__(self) self.host = HostHandler(self) def _get_config_vars(self, config_file):