ssm-services/init.d/privoxy

13 lines
300 B
Plaintext
Raw Normal View History

#!/usr/bin/env ssm
privoxy_username='privoxy'
privoxy_configfile='/etc/privoxy/config'
#service_respawn='true'
service_command='/usr/bin/privoxy'
2015-09-04 13:47:37 +00:00
service_args=( --no-daemon --user "$privoxy_username" "$privoxy_configfile" )
pre_restart() {
2015-09-04 13:47:37 +00:00
"$service_command" --config-test "${service_args[@]}"
}