freebsd-ports/www/apache13-modperl/files/apache.in
Doug Barton 1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00

34 lines
623 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="YES"
# apache_flags="<set as needed>"
apache_enable="${apache_enable-NO}"
apache_pidfile="${apache_pidfile='/var/run/httpd.pid'}"
. /etc/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"