freebsd-ports/www/c-icap/files/c_icap.sh.in
Pav Lucistnik d9ace6481e - Update to 030606
PR:		ports/98797
Submitted by:	Elisey O. Savateev <b3k@mail.ru> (maintainer)
2006-06-11 08:33:03 +00:00

35 lines
563 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: c-icap
# REQUIRE: DAEMON cleanvar
# BEFORE: LOGIN
#
# Add the following lines to /etc/rc.conf to enable c-icap:
#
# c_icap_enable="YES"
#
# See '%%PREFIX%%/bin/c-icap --help' for flags
#
. %%RC_SUBR%%
name="c_icap"
rcvar=`set_rcvar`
command="%%PREFIX%%/bin/c-icap"
pidfile="/var/run/c-icap.pid"
required_dirs="/var/tmp"
required_files="%%PREFIX%%/etc/c-icap.conf"
stop_postcmd="rm -f $pidfile"
# read settings, set default values
load_rc_config "$name"
: ${c_icap_enable="NO"}
: ${c_icap_flags=""}
run_rc_command "$1"