diff options
Diffstat (limited to 'www/apache13/files/apache.in')
-rw-r--r-- | www/apache13/files/apache.in | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/www/apache13/files/apache.in b/www/apache13/files/apache.in new file mode 100644 index 000000000000..1bea1411b8be --- /dev/null +++ b/www/apache13/files/apache.in @@ -0,0 +1,31 @@ +#!/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=${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`" +start_postcmd="`/usr/bin/limits -e -C daemon`" + +run_rc_command "$1" |