07dc81bc65
unexpected privileges reported in PR pkg/40532 by Cem Kayali, the issue is being discussed with upstream, thanks to Cem for detailed reports, also back out explicit passing of PRIVOXY_GROUP to the program -- while it does not hurt it is redundant because PRIVOXY_GROUP is already the primary group of PRIVOXY_USER
21 lines
434 B
Bash
Executable file
21 lines
434 B
Bash
Executable file
#!@RCD_SCRIPTS_SHELL@
|
|
#
|
|
# $NetBSD: privoxy.sh,v 1.5 2009/02/04 21:20:39 drochner Exp $
|
|
#
|
|
|
|
# PROVIDE: privoxy
|
|
# REQUIRE: DAEMON
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="privoxy"
|
|
rcvar=$name
|
|
command="/usr/pkg/sbin/${name}"
|
|
pidfile="/var/run/${name}.pid"
|
|
pconfig="@PKG_SYSCONFDIR@/config"
|
|
puser="@PRIVOXY_USER@"
|
|
required_files="$pconfig"
|
|
command_args="--pidfile ${pidfile} --user ${puser} ${pconfig} 2>/dev/null"
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|