ssm-services/init.d/unbound

19 lines
262 B
Plaintext
Raw Normal View History

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