freebsd-ports/www/c-icap/files/c_icap.in
Rong-En Fan 48054e5adf - Fixed serious bug in utf8 web pages recognition causing c-icap to enters an
endless loop
- Fixed typo in pkg-install
- Added to Makefile LOG_DIR, RUN_DIR and TMP_DIR variables

PR:		ports/101296
Submitted by:	Elisey Savateev <b3k at mail.ru> (maintainer)
2006-08-03 10:11:32 +00:00

35 lines
569 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="%%RUN_DIR%%/c-icap.pid"
required_dirs="%%TMP_DIR%%"
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"