ssm-services/services/unbound
fbt eea04dff95 Be more conservative about respawn
Signed-off-by: fbt <fbt@fleshless.org>
2018-03-08 02:34:49 +03:00

12 lines
190 B
Plaintext
Executable File

#!/usr/bin/env ssm
service_respawn=on-failure
service_command=( /usr/bin/unbound -d )
pre_reload() {
unbound-checkconf || {
printf 'Configtest failed, not reloading.\n'
return 1
}
}