dotfiles/homedir/.config/ssm/services/privoxy
fbt 7e99d071c0 ssm
Signed-off-by: fbt <fbt@fleshless.org>
2018-08-07 22:31:39 +03:00

22 lines
390 B
Plaintext
Executable File

#!/usr/bin/env watchman
privoxy_configfile="$HOME/.config/privoxy/config"
service_respawn='true'
service_command='/usr/bin/privoxy'
service_args=( --no-daemon "$privoxy_configfile" )
privoxy::configtest() {
"$service_command" --config-test "${service_args[@]}"
}
restart() {
privoxy::configtest || {
watchman.err "Config test failed, not restarting!"
return 1
}
stop
start
}