From d8d2234ca5d91b7344266396927effda4a20ea68 Mon Sep 17 00:00:00 2001 From: Derek Jennings Date: Tue, 27 Aug 2013 15:33:27 +0100 Subject: fix race condition checking service status (mga#10934) --- dhcp_wizard/Dhcp.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dhcp_wizard') diff --git a/dhcp_wizard/Dhcp.pm b/dhcp_wizard/Dhcp.pm index e8411f52..4f83b478 100755 --- a/dhcp_wizard/Dhcp.pm +++ b/dhcp_wizard/Dhcp.pm @@ -261,7 +261,7 @@ mask = $wiz_ip_netmask, rng1 = $wiz_ip_range1, rng2 = $wiz_ip_range2, dname = $w s/#\s+doption routers.*//; } "/etc/dhcpd.conf"; - services::restart_or_start('dhcpd'); + reload_or_restart('dhcpd'); check_started('dhcpd'); } -- cgit v1.2.1