conftest for unbound
This commit is contained in:
parent
e9f7c27258
commit
26e023157a
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user