conftest for unbound

This commit is contained in:
Jack L. Frost 2015-10-28 19:22:40 +03:00
parent e9f7c27258
commit 26e023157a
1 changed files with 13 additions and 0 deletions

View File

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