From 2173c7e3c061d96ba1e0b86a5265c98c4bd9c7cd Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont Date: Sat, 5 Sep 2009 18:20:01 +0200 Subject: [PATCH] [dhcpd.py] wtf-- Ignore-this: 643d72e6e64c38ff0a1e2b493a0288df darcs-hash:20090905162001-ffbb2-8d1fbd9395c111c4003be6cc093daa53546951c0.gz --- gestion/gen_confs/dhcpd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: