Files
ssm-services/init.d/privoxy
T

13 lines
300 B
Plaintext
Raw Normal View History

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