freebsd-ports/www/apache13-modperl/files/apache.in
Pav Lucistnik 00dd1ca2e3 - Fix rc script to have overridable apache_flags and apache_pidfile
PR:		ports/104465
Reported by:	Andrey Alakozov <aa29@mail.ru>
Submitted by:	Volker <volker@vwsoft.com>
Approved by:	maintainer timeout (apache; 5 months)

- While here, modernize USE_RC_SUBR usage
2007-03-14 20:21:31 +00:00

32 lines
599 B
Bash

#!/bin/sh
# $FreeBSD$
# PROVIDE: apache
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
# Define these apache_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/apache
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
apache_enable="${apache_enable-NO}"
apache_flags="${apache_flags=''}"
apache_pidfile="${apache_pidfile='/var/run/httpd.pid'}"
. %%RC_SUBR%%
name="apache"
rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/httpd"
load_rc_config $name
pidfile="${apache_pidfile}"
start_precmd="`/usr/bin/limits -e -U www`"
run_rc_command "$1"