watchman -> ssm

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2017-07-13 16:09:42 +03:00
parent 3953df0dba
commit 2205f72a2e
71 changed files with 198 additions and 212 deletions

View File

@@ -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
}
}