31 lines
659 B
Bash
31 lines
659 B
Bash
#!/bin/sh
|
|
# $FreeBSD$
|
|
|
|
# PROVIDE: dansguardian
|
|
# REQUIRE: NETWORKING SERVERS squid
|
|
# BEFORE: DAEMON
|
|
# 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}"
|
|
|