freebsd-ports/www/varnish/files/varnishncsa.in
Dag-Erling Smørgrav ff4a96c5fc Revert the addition of varnishd_user and varnishd_group. They are magic
to rc.subr.  While we're here, s/Id/FreeBSD/ in all three rc scripts.
2008-11-03 11:34:58 +00:00

39 lines
841 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: varnishncsa
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable varnishncsa:
#
#varnishncsa_enable="YES"
#
# Configuration variables and their default values:
#
#varnishncsa_file=${varnishncsa_file:-"/var/log/varnish-ncsa.log"}
#varnishncsa_flags=${varnishncsa_flags:-"-D -P ${pidfile} -a -w ${varnishncsa_file}"}
#
# See varnishncsa(1) for a detailed overview of command-line options.
#
. %%RC_SUBR%%
name=varnishncsa
rcvar=`set_rcvar`
command="%%PREFIX%%/bin/varnishncsa"
pidfile="/var/run/${name}.pid"
# read configuration and set defaults
load_rc_config ${name}
: ${varnishncsa_enable="NO"}
: ${varnishncsa_file="/var/log/varnish-ncsa.log"}
: ${varnishncsa_flags="-P ${pidfile} -D -a -w ${varnishncsa_file}"}
load_rc_config ${name}
run_rc_command "$1"