summaryrefslogtreecommitdiffstats
path: root/www/dansguardian/files/dansguardian.sh
blob: 43440f0bdf7d71dc3d758649330432783aa71176 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
# $FreeBSD$

# PROVIDE: dansguardian
# REQUIRE: DAEMON squid
# BEFORE: LOGIN
# KEYWORD: FreeBSD 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}"

OpenPOWER on IntegriCloud