diff --git a/init.d/unbound b/init.d/unbound index b3deb79..a8a61e3 100755 --- a/init.d/unbound +++ b/init.d/unbound @@ -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 +}