summaryrefslogtreecommitdiff
path: root/www/apache6
diff options
context:
space:
mode:
authorhubertf <hubertf>2000-07-10 12:22:27 +0000
committerhubertf <hubertf>2000-07-10 12:22:27 +0000
commit7a8e47fa4ff18de53a4db9f8b27e1b006acad1de (patch)
tree1d74479bc93c44aed43c75decf3eb15773dc1a62 /www/apache6
parente6535eecd28bae0678ae2d950e3569e9999f5b70 (diff)
downloadpkgsrc-7a8e47fa4ff18de53a4db9f8b27e1b006acad1de.tar.gz
Make the rc.d script(s) react to something else then 'start', i.e.
one can now stop the daemon.
Diffstat (limited to 'www/apache6')
-rw-r--r--www/apache6/files/apache.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/www/apache6/files/apache.sh b/www/apache6/files/apache.sh
index 6ea2b2567cb..8c09bea64c3 100644
--- a/www/apache6/files/apache.sh
+++ b/www/apache6/files/apache.sh
@@ -1,10 +1,13 @@
#!/bin/sh
#
-# $NetBSD: apache.sh,v 1.1.1.1 1999/07/23 17:53:29 itojun Exp $
+# $NetBSD: apache.sh,v 1.2 2000/07/10 12:22:30 hubertf Exp $
#
+
+CMD=${1:-start}
+
if [ -x @PREFIX@/sbin/httpd -a -f @PREFIX@/etc/httpd/httpd.conf ]
then
- @PREFIX@/sbin/apachectl start >/dev/null
+ @PREFIX@/sbin/apachectl $CMD >/dev/null
echo -n ' apache'
fi
exit 0