summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>2002-11-19 23:08:47 +0000
committerjlam <jlam>2002-11-19 23:08:47 +0000
commit305c9f5d69846f19a50b95f6f75a567ca639ff34 (patch)
tree7905e27002649c8aa698f341be1a9a10202f2c3e
parentb677e03c59a00e4820fc1a11020703d4fde388b0 (diff)
downloadpkgsrc-305c9f5d69846f19a50b95f6f75a567ca639ff34.tar.gz
As per discussion in pkg/18854, remove support for apache_start.conf as
the precedence of the contents of this file changes depending on whether it's started at boot time or started manually, and it's not really necessary to add the extra complexity since it's valid (and easier) to just set apache_start in /etc/rc.conf.
-rw-r--r--www/apache/files/apache.sh27
-rw-r--r--www/apache6/files/apache.sh25
2 files changed, 14 insertions, 38 deletions
diff --git a/www/apache/files/apache.sh b/www/apache/files/apache.sh
index 5742e0e9c30..45c9903a1eb 100644
--- a/www/apache/files/apache.sh
+++ b/www/apache/files/apache.sh
@@ -1,13 +1,16 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: apache.sh,v 1.23 2002/10/14 00:29:50 lukem Exp $
+# $NetBSD: apache.sh,v 1.24 2002/11/19 23:08:47 jlam Exp $
#
# PROVIDE: apache
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
-# To start apache at startup, copy this script to /etc/rc.d and set
-# apache=YES in /etc/rc.conf.
+# You will need to set some variables in /etc/rc.conf to start Apache:
+#
+# apache=YES
+# apache_start="start" # set to "startssl" to allow HTTPS connections
+# # if ap-ssl is installed; this variable is optional
if [ -f /etc/rc.subr ]
then
@@ -25,24 +28,10 @@ stop_cmd="apache_doit stop"
restart_cmd="apache_doit restart"
reload_cmd="apache_doit reload"
-# "${apache_start}" is the subcommand sent to apachectl to control how
-# httpd is started. It's value may be overridden in:
-#
-# @PKG_SYSCONFDIR@/apache_start.conf
-# /etc/rc.conf
-# /etc/rc.conf.d/apache,
-#
-# in order of increasing precedence. Its possible values are "start"
-# and "startssl", and defaults to "start" unless it's already set.
-#
-: ${apache_start:=start}
-if [ -f @PKG_SYSCONFDIR@/apache_start.conf ]
-then
- . @PKG_SYSCONFDIR@/apache_start.conf
-fi
-
apache_doit ()
{
+ : ${apache_start:=start}
+
case $1 in
start) action=${apache_start} ;;
reload) action=graceful ;;
diff --git a/www/apache6/files/apache.sh b/www/apache6/files/apache.sh
index ba2bf9b0df7..2663e152749 100644
--- a/www/apache6/files/apache.sh
+++ b/www/apache6/files/apache.sh
@@ -1,13 +1,14 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: apache.sh,v 1.17 2002/10/14 00:29:51 lukem Exp $
+# $NetBSD: apache.sh,v 1.18 2002/11/19 23:08:47 jlam Exp $
#
# PROVIDE: apache
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
-# To start apache at startup, copy this script to /etc/rc.d and set
-# apache=YES in /etc/rc.conf.
+# You will need to set some variables in /etc/rc.conf to start Apache:
+#
+# apache=YES
if [ -f /etc/rc.subr ]
then
@@ -25,24 +26,10 @@ stop_cmd="apache_doit stop"
restart_cmd="apache_doit restart"
reload_cmd="apache_doit reload"
-# "${apache_start}" is the subcommand sent to apachectl to control how
-# httpd is started. It's value may be overridden in:
-#
-# @PKG_SYSCONFDIR@/apache_start.conf
-# /etc/rc.conf
-# /etc/rc.conf.d/apache,
-#
-# in order of increasing precedence. Its possible values are "start"
-# and "startssl", and defaults to "start" unless it's already set.
-#
-: ${apache_start:=start}
-if [ -f @PKG_SYSCONFDIR@/apache_start.conf ]
-then
- . @PKG_SYSCONFDIR@/apache_start.conf
-fi
-
apache_doit ()
{
+ : ${apache_start:=start}
+
case $1 in
start) action=${apache_start} ;;
reload) action=graceful ;;