diff --git a/gestion/gen_confs/dhcpd.py b/gestion/gen_confs/dhcpd.py index edbcb441..43049d65 100644 --- a/gestion/gen_confs/dhcpd.py +++ b/gestion/gen_confs/dhcpd.py @@ -166,7 +166,7 @@ subnet %(network)s netmask %(netmask)s { # if hostname == 'zamok': # restart_cmd = '/etc/init.d/dhcp restart' if hostname == 'ragnarok': - restart_cmd = 'kill $(ps auxwwc | awk \'($11 == "dhcpd") {print $2}\') ; sleep 1 ; dhcpd $(grep -v \'^#\' /etc/dhcpd.interfaces | tr \'\\n\' \' \')' + restart_cmd = 'pkill dhcpd ; sleep 1 ; dhcpd' elif hostname in ['rouge', 'titanic', 'sable'] : restart_cmd = '/etc/init.d/dhcp3-server restart' else: