summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dnsmasq.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-11-14 09:51:27 -0200
committerRenato Botelho <garga@FreeBSD.org>2014-11-14 09:51:27 -0200
commit4dbcf2fbcea9cfe2166c958d3872e3a7353e3c5c (patch)
treeaf62e6f4f6493a27c9f51b5a417e911a784532a3 /usr/local/www/services_dnsmasq.php
parent9612943eaa3c6ef427ea4414f7c32dc2b326dd55 (diff)
downloadpfsense-4dbcf2fbcea9cfe2166c958d3872e3a7353e3c5c.zip
pfsense-4dbcf2fbcea9cfe2166c958d3872e3a7353e3c5c.tar.gz
Make sure dhcpleases use correct pid file for dnsmasq or unbound. Fixes #4008
Diffstat (limited to 'usr/local/www/services_dnsmasq.php')
-rw-r--r--usr/local/www/services_dnsmasq.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/services_dnsmasq.php b/usr/local/www/services_dnsmasq.php
index 6d353da..75feda9 100644
--- a/usr/local/www/services_dnsmasq.php
+++ b/usr/local/www/services_dnsmasq.php
@@ -44,6 +44,7 @@ require("guiconfig.inc");
require_once("functions.inc");
require_once("filter.inc");
require_once("shaper.inc");
+require_once("system.inc");
$pconfig['enable'] = isset($config['dnsmasq']['enable']);
$pconfig['regdhcp'] = isset($config['dnsmasq']['regdhcp']);
@@ -119,6 +120,8 @@ if ($_POST) {
filter_configure();
/* Update resolv.conf in case the interface bindings exclude localhost. */
system_resolvconf_generate();
+ /* Start or restart dhcpleases when it's necessary */
+ system_dhcpleases_configure();
if ($retval == 0)
clear_subsystem_dirty('hosts');
OpenPOWER on IntegriCloud