summaryrefslogtreecommitdiff
path: root/www/apache13/files/apache.in
blob: 7bed9127803d3fc65ae9a44859bd54b96ded72b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
# $FreeBSD$

# PROVIDE: apache
# REQUIRE: LOGIN cleanvar
# 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"}

. %%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`"
start_postcmd="`/usr/bin/limits -e -C daemon`"

run_rc_command "$1"