diff options
-rw-r--r-- | www/apache/files/apache.sh | 7 | ||||
-rw-r--r-- | www/apache6/files/apache.sh | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/www/apache/files/apache.sh b/www/apache/files/apache.sh index 65e77c105ef..3d85a5c5c46 100644 --- a/www/apache/files/apache.sh +++ b/www/apache/files/apache.sh @@ -1,10 +1,13 @@ #!/bin/sh # -# $NetBSD: apache.sh,v 1.2 1999/05/11 18:38:31 tron Exp $ +# $NetBSD: apache.sh,v 1.3 2000/07/10 12:22:27 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 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 |