summaryrefslogtreecommitdiff
path: root/news
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2001-07-29 05:11:26 +0000
committertron <tron@pkgsrc.org>2001-07-29 05:11:26 +0000
commitadc35f1d132f645b2e69a9d71bc46d0cafff0f0b (patch)
tree212feee0a8ac19c24b2cc36bb137940ab17e6461 /news
parentd2df086f75f3662e24fd033426e78492236357f8 (diff)
downloadpkgsrc-adc35f1d132f645b2e69a9d71bc46d0cafff0f0b.tar.gz
Redirect standard output to "/dev/null" when starting "rc.news" to avoid
flooding of the console with unimportant INN log messages.
Diffstat (limited to 'news')
-rw-r--r--news/inn/files/innd.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/news/inn/files/innd.sh b/news/inn/files/innd.sh
index f67d37f866b..833fe3302cb 100644
--- a/news/inn/files/innd.sh
+++ b/news/inn/files/innd.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: innd.sh,v 1.10 2001/05/10 21:58:01 tron Exp $
+# $NetBSD: innd.sh,v 1.11 2001/07/29 05:11:26 tron Exp $
#
# PROVIDE: inn
# REQUIRE: DAEMON
@@ -30,7 +30,12 @@ then
fi
case "$1" in
- start | stop)
+ start )
+ echo "Starting INN."
+ su news -c "@@PREFIX@@/inn/bin/rc.news $1" >/dev/null
+ exit 0
+ ;;
+ stop )
su news -c "@@PREFIX@@/inn/bin/rc.news $1"
exit 0
;;