[inn] Redirec STDOUT and STDERR to /dev/null
Jochen Schmitt
s4504kr at fedoraproject.org
Tue Nov 15 17:42:52 UTC 2011
commit ad7387600d81a50a1ff74f52742ca410a9af4c71
Author: Jochen Schmitt <Jochen at herr-schmitt.de>
Date: Tue Nov 15 18:42:12 2011 +0100
Redirec STDOUT and STDERR to /dev/null
inn-cron-expire | 2 +-
inn-cron-nntpsend | 2 +-
inn-cron-rnews | 2 +-
inn.spec | 5 ++++-
4 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/inn-cron-expire b/inn-cron-expire
index 0e27bed..8ec1b2b 100644
--- a/inn-cron-expire
+++ b/inn-cron-expire
@@ -1,3 +1,3 @@
#!/bin/sh
-/sbin/chkconfig innd || exit 0
+/sbin/chkconfig innd >& /dev/null || exit 0
runuser -m news -c "unset LANG; unset LC_COLLATE; /usr/libexec/news/news.daily delayrm"
diff --git a/inn-cron-nntpsend b/inn-cron-nntpsend
index 13bfd7f..8345c58 100755
--- a/inn-cron-nntpsend
+++ b/inn-cron-nntpsend
@@ -1,3 +1,3 @@
#!/bin/sh
-/sbin/chkconfig innd || exit 0
+/sbin/chkconfig innd >& /dev/null || exit 0
runuser -m news -c "unset LANG; unset LC_COLLATE; /usr/libexec/news/nntpsend"
diff --git a/inn-cron-rnews b/inn-cron-rnews
index 0fafdab..71401da 100644
--- a/inn-cron-rnews
+++ b/inn-cron-rnews
@@ -1,3 +1,3 @@
#!/bin/sh
-/sbin/chkconfig innd >/dev/null || exit 0
+/sbin/chkconfig innd >& /dev/null || exit 0
runuser -m news -c 'unset LANG; unset LC_COLLATE; /usr/libexec/news/rnews -U'
diff --git a/inn.spec b/inn.spec
index e3b3200..1c672b4 100644
--- a/inn.spec
+++ b/inn.spec
@@ -1,7 +1,7 @@
Summary: The InterNetNews system, an Usenet news server
Name: inn
Version: 2.5.2
-Release: 19%{?dist}
+Release: 20%{?dist}
#see LICENSE file for details
License: GPLv2+ and BSD and MIT and Public Domain
Group: System Environment/Daemons
@@ -524,6 +524,9 @@ fi
%{_mandir}/man1/inews*
%changelog
+* Tue Nov 15 2011 Jochen Schmitt <Jochen herr-schmitt de> - 2.5.2-20
+- Redirect both STDOUT and STDERR on cron.hourly
+
* Sun Nov 13 2011 Jochen Schmitt <Jochen herr-schmitt de> - 2.5.2-19
- Avoid useless messages in cron.hourly (#753581)
More information about the scm-commits
mailing list