freebsd-ports/www/dansguardian/files/dansguardian.sh.in
Andrew Pantyukhin 945c597495 - Remove unnecessary "before: daemon" statement from rc.d scripts
PR:		ports/104278
Submitted by:	Jeff Palmer<scorpio@drkshdw.org>
Approved by:	Freddie Cash <fcash@sd73.bc.ca> (maintainer)
2006-11-04 00:26:23 +00:00

30 lines
641 B
Bash

#!/bin/sh
# $FreeBSD$
# PROVIDE: dansguardian
# REQUIRE: NETWORKING SERVERS squid
# KEYWORD: shutdown
# Define these dansguardian_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/dansguardian
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
dansguardian_enable=${dansguardian_enable:-"NO"}
dansguardian_flags=${dansguardian_flags:-""}
dansguardian_pidfile=${dansguardian_pidfile:-"/var/run/dansguardian.pid"}
. %%RC_SUBR%%
name="dansguardian"
rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/dansguardian"
load_rc_config ${name}
pidfile="${dansguardian_pidfile}"
run_rc_command "${1}"