summaryrefslogtreecommitdiff
path: root/news
diff options
context:
space:
mode:
authortron <tron>2001-07-29 05:11:26 +0000
committertron <tron>2001-07-29 05:11:26 +0000
commit074686fba99bc998774f91df7388eb1e3072e359 (patch)
tree212feee0a8ac19c24b2cc36bb137940ab17e6461 /news
parentbb52024a0d5a54abad4f9bdacac022d8145939b8 (diff)
downloadpkgsrc-074686fba99bc998774f91df7388eb1e3072e359.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
;;