Do not reconfigure dhcpd twice on secondary after config sync. Fixes #3797

This commit is contained in:
Renato Botelho 2014-08-29 14:41:09 -03:00
parent ab6558b6a2
commit 7486c1f6c1
1 changed files with 7 additions and 2 deletions

View File

@ -369,8 +369,13 @@ function filter_configure_xmlrpc($raw_params) {
relayd_configure();
require_once("openvpn.inc");
openvpn_resync_all();
services_dhcpd_configure();
services_dnsmasq_configure();
if (isset($config['dnsmasq']['enable']))
services_dnsmasq_configure();
else
# Both calls above run services_dhcpd_configure(), then we just
# need to call it when them are not called to avoid restart dhcpd
# twice, as described on ticket #3797
services_dhcpd_configure();
local_sync_accounts();
return $xmlrpc_g['return']['true'];