diff options
author | jim-p <jimp@pfsense.org> | 2017-06-29 12:21:10 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2017-06-29 12:34:51 -0400 |
commit | cad82db7207e0b71ac87a1661e1b2c8d75b35c2e (patch) | |
tree | 29b3d5e7fabe6732e1eb9d4e6ed8f8a0e58c5371 /src | |
parent | 1a96a3a90ff7bdebd2b02db7a3da79ddb733866f (diff) | |
download | pfsense-cad82db7207e0b71ac87a1661e1b2c8d75b35c2e.zip pfsense-cad82db7207e0b71ac87a1661e1b2c8d75b35c2e.tar.gz |
unbound-control needs to know the config path or else it can't work properly. Fixes #7667
(cherry picked from commit 8a0aa42c197361ebb82387e5bdc8378e5440837f)
Diffstat (limited to 'src')
-rw-r--r-- | src/etc/inc/unbound.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/etc/inc/unbound.inc b/src/etc/inc/unbound.inc index cbba152..ac1c269 100644 --- a/src/etc/inc/unbound.inc +++ b/src/etc/inc/unbound.inc @@ -497,10 +497,10 @@ function do_as_unbound_user($cmd, $param1 = "") { mwexec("/usr/local/sbin/unbound -c {$g['unbound_chroot_path']}/unbound.conf"); break; case "stop": - mwexec("echo '/usr/local/sbin/unbound-control stop' | /usr/bin/su -m unbound", true); + mwexec("echo '/usr/local/sbin/unbound-control -c {$g['unbound_chroot_path']}/unbound.conf stop' | /usr/bin/su -m unbound", true); break; case "reload": - mwexec("echo '/usr/local/sbin/unbound-control reload' | /usr/bin/su -m unbound", true); + mwexec("echo '/usr/local/sbin/unbound-control -c {$g['unbound_chroot_path']}/unbound.conf reload' | /usr/bin/su -m unbound", true); break; case "unbound-anchor": $root_key_file = "{$g['unbound_chroot_path']}{$param1}/root.key"; |