summaryrefslogtreecommitdiffstats
path: root/etc/inc/unbound.inc
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2014-01-30 12:03:20 +0200
committerWarren Baker <warren@decoy.co.za>2014-01-30 12:03:20 +0200
commit327a4fc65f7bd1ca4c3ee4622857c1efedd3088e (patch)
tree32f5bdfecef2aa25959cb6772315499b2e423990 /etc/inc/unbound.inc
parent8e552911a4ad5da0c9ed5439f259f2f6ea9de9a3 (diff)
downloadpfsense-327a4fc65f7bd1ca4c3ee4622857c1efedd3088e.zip
pfsense-327a4fc65f7bd1ca4c3ee4622857c1efedd3088e.tar.gz
Make sure unbound starts
Diffstat (limited to 'etc/inc/unbound.inc')
-rw-r--r--etc/inc/unbound.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/unbound.inc b/etc/inc/unbound.inc
index 008f845..936d965 100644
--- a/etc/inc/unbound.inc
+++ b/etc/inc/unbound.inc
@@ -346,7 +346,7 @@ function do_as_unbound_user($cmd) {
switch ($cmd) {
case "start":
- exec("echo '/usr/sbin/unbound-control -c{$g['unbound_chroot_path']}/unbound.conf start' | /usr/bin/su -m unbound");
+ mwexec("/usr/sbin/unbound -c{$g['unbound_chroot_path']}/unbound.conf");
break;
case "stop":
mwexec("echo '/usr/sbin/unbound-control stop' | /usr/bin/su -m unbound", true);
OpenPOWER on IntegriCloud