2017-07-13 13:09:42 +00:00
|
|
|
#!/usr/bin/env ssm
|
2014-04-04 11:40:45 +00:00
|
|
|
|
|
|
|
privoxy_username='privoxy'
|
|
|
|
privoxy_configfile='/etc/privoxy/config'
|
|
|
|
|
2014-08-02 17:35:27 +00:00
|
|
|
#service_respawn='true'
|
2014-04-04 11:40:45 +00:00
|
|
|
service_command='/usr/bin/privoxy'
|
2015-09-04 13:47:37 +00:00
|
|
|
service_args=( --no-daemon --user "$privoxy_username" "$privoxy_configfile" )
|
2014-04-04 11:40:45 +00:00
|
|
|
|
2017-07-13 13:09:42 +00:00
|
|
|
pre_restart() {
|
2015-09-04 13:47:37 +00:00
|
|
|
"$service_command" --config-test "${service_args[@]}"
|
2014-04-04 11:40:45 +00:00
|
|
|
}
|