19 lines
262 B
Plaintext
Raw Normal View History

2015-08-13 19:41:27 +03:00
#!/usr/bin/env watchman
#service_respawn='true'
service_command='/usr/bin/unbound'
2015-09-04 16:47:37 +03:00
service_args=( -d )
2015-10-28 19:22:40 +03:00
conftest() {
unbound-checkconf
}
reload() {
if conftest; then
watchman.reload
else
watchman.err "Configtest failed, not reloading."
return 1
fi
}