conftest for unbound

This commit is contained in:
Jack L. Frost 2015-10-28 19:22:40 +03:00
parent e9f7c27258
commit 26e023157a

View File

@ -3,3 +3,16 @@
#service_respawn='true' #service_respawn='true'
service_command='/usr/bin/unbound' service_command='/usr/bin/unbound'
service_args=( -d ) service_args=( -d )
conftest() {
unbound-checkconf
}
reload() {
if conftest; then
watchman.reload
else
watchman.err "Configtest failed, not reloading."
return 1
fi
}