48054e5adf
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)
35 lines
569 B
Bash
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"
|