#!/bin/sh # # $FreeBSD: head/www/havp/files/havp.in 340872 2014-01-24 00:14:07Z mat $ # # PROVIDE: havp # REQUIRE: DAEMON cleanvar # BEFORE: LOGIN # # Add the following lines to /etc/rc.conf to enable c-icap: # # havp_enable="YES" # havp_flags="" # # 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"