From 00dd1ca2e35ffc199824a9e9fe16254ecd316670 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Wed, 14 Mar 2007 20:21:31 +0000 Subject: - Fix rc script to have overridable apache_flags and apache_pidfile PR: ports/104465 Reported by: Andrey Alakozov Submitted by: Volker Approved by: maintainer timeout (apache; 5 months) - While here, modernize USE_RC_SUBR usage --- www/apache13-modperl/files/apache.in | 32 ++++++++++++++++++++++++++++++++ www/apache13-modperl/files/apache.sh | 32 -------------------------------- 2 files changed, 32 insertions(+), 32 deletions(-) create mode 100644 www/apache13-modperl/files/apache.in delete mode 100644 www/apache13-modperl/files/apache.sh (limited to 'www/apache13-modperl/files') diff --git a/www/apache13-modperl/files/apache.in b/www/apache13-modperl/files/apache.in new file mode 100644 index 000000000000..1dcf95bb3866 --- /dev/null +++ b/www/apache13-modperl/files/apache.in @@ -0,0 +1,32 @@ +#!/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" diff --git a/www/apache13-modperl/files/apache.sh b/www/apache13-modperl/files/apache.sh deleted file mode 100644 index f98638ebbff0..000000000000 --- a/www/apache13-modperl/files/apache.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh -# $FreeBSD: /tmp/pcvs/ports/www/apache13-modperl/files/Attic/apache.sh,v 1.3 2006-02-20 20:47:46 dougb Exp $ - -# 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_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" -- cgit v1.2.3