pkgsrc-ng/www/privoxy/files/privoxy.sh
2013-09-26 17:14:40 +02:00

22 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"