]> git.llucax.com Git - software/pymin.git/commitdiff
Alias reload to restart in DhcpHandler (init.d script don't have reload).
authorFede <fedux@linux-kt9u.site>
Thu, 18 Oct 2007 00:39:25 +0000 (21:39 -0300)
committerFede <fedux@linux-kt9u.site>
Thu, 18 Oct 2007 00:39:25 +0000 (21:39 -0300)
pymin/services/dhcp/__init__.py

index 7f0bb7db48516293fd7a90b4e7df20929c13adbc..251553bde18f448f84d4864d654da37f97d10ed6 100644 (file)
@@ -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.