ssm-services/init.d/privoxy
fbt 2205f72a2e watchman -> ssm
Signed-off-by: fbt <fbt@fleshless.org>
2017-07-13 16:09:42 +03:00

13 lines
300 B
Plaintext
Executable File

#!/usr/bin/env ssm
privoxy_username='privoxy'
privoxy_configfile='/etc/privoxy/config'
#service_respawn='true'
service_command='/usr/bin/privoxy'
service_args=( --no-daemon --user "$privoxy_username" "$privoxy_configfile" )
pre_restart() {
"$service_command" --config-test "${service_args[@]}"
}