diff --git a/gestion/gen_confs/dhcpd.py b/gestion/gen_confs/dhcpd.py index d0e49501..97da5c13 100755 --- a/gestion/gen_confs/dhcpd.py +++ b/gestion/gen_confs/dhcpd.py @@ -76,8 +76,14 @@ subnet %(network)s netmask %(netmask)s { # Si =1 ralera (chaine warnings) si machines hors zone trouvée # Si =0 ralera seulement si réseau vide verbose = 1 - - restart_cmd = '/etc/init.d/dhcp restart' + + if hostname == 'zamok': + restart_cmd = '/etc/init.d/dhcp restart' + elif hostname == 'nectaris': + # restart_cmd = 'kill $(cat /var/run/dhcpd.pid) ; sleep 1 ; dhcpd $(stripcom /etc/dhcpd.interfaces)' + restart_cmd = 'true' + else: + restart_cmd = 'true' ######################################FIN PARTIE DE CONFIGURATION