@@ -1,18 +1,11 @@
|
||||
#!/usr/bin/env watchman
|
||||
#!/usr/bin/env ssm
|
||||
|
||||
#service_respawn='true'
|
||||
service_command='/usr/bin/unbound'
|
||||
service_args=( -d )
|
||||
service_command=( /usr/bin/unbound -d )
|
||||
|
||||
conftest() {
|
||||
unbound-checkconf
|
||||
}
|
||||
|
||||
reload() {
|
||||
if conftest; then
|
||||
watchman.reload
|
||||
else
|
||||
watchman.err "Configtest failed, not reloading."
|
||||
pre_reload() {
|
||||
unbound-checkconf || {
|
||||
printf 'Configtest failed, not reloading.\n'
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user