[dhcpd.py] wtf--

Ignore-this: 643d72e6e64c38ff0a1e2b493a0288df

darcs-hash:20090905162001-ffbb2-8d1fbd9395c111c4003be6cc093daa53546951c0.gz
This commit is contained in:
Nicolas Dandrimont 2009-09-05 18:20:01 +02:00
parent 3b399415bd
commit 2173c7e3c0

View file

@ -166,7 +166,7 @@ subnet %(network)s netmask %(netmask)s {
# if hostname == 'zamok': # if hostname == 'zamok':
# restart_cmd = '/etc/init.d/dhcp restart' # restart_cmd = '/etc/init.d/dhcp restart'
if hostname == 'ragnarok': 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'] : elif hostname in ['rouge', 'titanic', 'sable'] :
restart_cmd = '/etc/init.d/dhcp3-server restart' restart_cmd = '/etc/init.d/dhcp3-server restart'
else: else: