ssm-services/services/privoxy
fbt d85b1945e9 kek
Signed-off-by: fbt <fbt@fleshless.org>
2017-12-10 20:44:17 +03:00

11 lines
262 B
Plaintext
Executable File

#!/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"
}