aboutsummaryrefslogtreecommitdiffstats
path: root/config/unbound
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2011-09-27 18:39:01 +0200
committerWarren Baker <warren@decoy.co.za>2011-09-27 18:39:01 +0200
commit2a05df2df81cf25f413f31a25cf2263a5156b4eb (patch)
treebda01b9814eafe97312d32a8b1ab2d3722af4e0d /config/unbound
parent77b6714422c2266c2d9bdd7652d845086a94e5f6 (diff)
downloadpfsense-packages-2a05df2df81cf25f413f31a25cf2263a5156b4eb.tar.gz
pfsense-packages-2a05df2df81cf25f413f31a25cf2263a5156b4eb.tar.bz2
pfsense-packages-2a05df2df81cf25f413f31a25cf2263a5156b4eb.zip
Link dnsmasq.pid to unbound so dhcpleases can send sighup and not complain
Diffstat (limited to 'config/unbound')
-rw-r--r--config/unbound/unbound.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/unbound/unbound.inc b/config/unbound/unbound.inc
index 89f25b46..001f05d7 100644
--- a/config/unbound/unbound.inc
+++ b/config/unbound/unbound.inc
@@ -198,6 +198,9 @@ function unbound_control($action) {
if($unbound_config['unbound_status'] == "on") {
if(!is_service_running("unbound"))
unbound_ctl_exec("start");
+ /* Link dnsmasq.pid to prevent dhcpleases logging error */
+ if (!file_exists("/var/run/dnsmasq.pid"))
+ mwexec("/bin/ln -s /var/run/dnsmasq.pid /var/run/unbound.pid");
fetch_root_hints();
}
break;