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