from pymin.dispatcher import Handler, handler, HandlerError
from pymin.services.util import Restorable, ConfigWriter, InitdHandler, \
TransactionalHandler, ParametersHandler, \
- DictSubHandler
+ DictSubHandler, ReloadHandler
__ALL__ = ('DhcpHandler',)
_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.
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):