diff options
Diffstat (limited to 'www/apache')
-rw-r--r-- | www/apache/files/apache.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/www/apache/files/apache.sh b/www/apache/files/apache.sh index 668b9532e55..c29b5047797 100644 --- a/www/apache/files/apache.sh +++ b/www/apache/files/apache.sh @@ -1,6 +1,6 @@ #! /bin/sh # -# $NetBSD: apache.sh,v 1.6 2000/09/14 02:31:04 jlam Exp $ +# $NetBSD: apache.sh,v 1.7 2000/09/20 06:08:42 jlam Exp $ # # PROVIDE: apache # REQUIRE: DAEMON @@ -24,7 +24,13 @@ case ${cmd} in start) if [ -x ${command} -a -f ${conffile} ]; then echo "Starting ${name}." - ${command} ${apache_start} + ${command} ${apache_start} > /dev/null + fi + ;; +stop) + if [ -x ${command} -a -f ${pidfile} ]; then + echo "Stopping ${name}." + ${command} stop > /dev/null fi ;; restart) |