11 lines
262 B
Plaintext
11 lines
262 B
Plaintext
|
#!/usr/bin/env ssm
|
||
|
|
||
|
privoxy_username='privoxy'
|
||
|
privoxy_configfile='/etc/privoxy/config'
|
||
|
|
||
|
service_command=( /usr/bin/privoxy --no-daemon --user "$privoxy_username" "$privoxy_configfile" )
|
||
|
|
||
|
pre_restart() {
|
||
|
"$service_command" --config-test "$privoxy_configfile"
|
||
|
}
|