blob: d4757808d85b421e080af1ff21eb1049ec63c8ce (
plain) (
blame)
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
32
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: havp
# REQUIRE: DAEMON cleanvar
# BEFORE: LOGIN
#
# Add the following lines to /etc/rc.conf to enable c-icap:
#
# havp_enable="YES"
# havp_flags="<set as needed>"
#
# See '%%PREFIX%%/sbin/havp --help' for flags
. /etc/rc.subr
name="havp"
rcvar=havp_enable
command="%%PREFIX%%/sbin/$name"
pidfile="%%RUN_DIR%%/${name}.pid"
required_dirs="%%TMP_DIR%%"
required_files="%%PREFIX%%/etc/havp/blacklist %%PREFIX%%/etc/havp/havp.config %%PREFIX%%/etc/havp/whitelist"
# read settings, set default values
load_rc_config "$name"
: ${havp_enable="NO"}
run_rc_command "$1"
|