summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2002-07-02 11:57:19 +0000
committerwiz <wiz@pkgsrc.org>2002-07-02 11:57:19 +0000
commit6718d8cd70c3a32803d843550284a8f35ff6c5d7 (patch)
tree7aec273241c54211fcdf4577ff4eaefe7ab6d034 /www
parent8d557d681ec1a02f52c85566130ae5f0376e97ed (diff)
downloadpkgsrc-6718d8cd70c3a32803d843550284a8f35ff6c5d7.tar.gz
Test some more files before using 1.5 rc.subr features.
Closes pkg/17378 by Greg A. Woods.
Diffstat (limited to 'www')
-rw-r--r--www/apache/files/apache.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/apache/files/apache.sh b/www/apache/files/apache.sh
index f888b10221d..6c12754c9be 100644
--- a/www/apache/files/apache.sh
+++ b/www/apache/files/apache.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: apache.sh,v 1.18 2002/03/18 12:15:37 abs Exp $
+# $NetBSD: apache.sh,v 1.19 2002/07/02 11:57:19 wiz Exp $
#
# PROVIDE: apache
# REQUIRE: DAEMON
@@ -48,7 +48,7 @@ apache_doit ()
${ctl_command} ${action}
}
-if [ -f /etc/rc.subr ]
+if [ -f /etc/rc.subr -a -f /etc/rc.conf -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]
then
load_rc_config $name
run_rc_command "$1"