#!/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"