Files
ssm-services/services/unbound
T

12 lines
190 B
Plaintext
Raw Normal View History

2017-07-13 16:09:42 +03:00
#!/usr/bin/env ssm
2015-08-13 19:41:27 +03:00
2018-03-08 02:34:49 +03:00
service_respawn=on-failure
2017-07-13 16:09:42 +03:00
service_command=( /usr/bin/unbound -d )
2015-10-28 19:22:40 +03:00
2017-07-13 16:09:42 +03:00
pre_reload() {
unbound-checkconf || {
printf 'Configtest failed, not reloading.\n'
2015-10-28 19:22:40 +03:00
return 1
2017-07-13 16:09:42 +03:00
}
2015-10-28 19:22:40 +03:00
}