#!/bin/sh
#
# $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="/usr/pkg/etc/privoxy/config"
puser="privoxy"
required_files="$pconfig"
command_args="--pidfile ${pidfile} --user ${puser} ${pconfig} 2>/dev/null"

load_rc_config $name
run_rc_command "$1"
