From 21d98dcff5beaabce7712ab5bd39ae01d4ae90b0 Mon Sep 17 00:00:00 2001 From: jlam Date: Wed, 20 Sep 2000 06:08:42 +0000 Subject: Make the rc.d control script less verbose/redundant in its messages. --- www/apache/files/apache.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'www') 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) -- cgit v1.2.3