[debsums] 142/184: Send the output of the cron jobs to syslog as well (Closes: #651887)
Axel Beckert
abe at deuxchevaux.org
Mon Mar 2 21:21:27 UTC 2015
This is an automated email from the git hooks/post-receive script.
abe pushed a commit to branch master
in repository debsums.
commit 3506f78352c5234813996052d511f157324f8508
Author: Ryan Niebur <ryanryan52 at gmail.com>
Date: Tue Dec 20 16:17:33 2011 -0800
Send the output of the cron jobs to syslog as well (Closes: #651887)
---
debian/changelog | 3 ++-
debian/cron.daily | 4 +++-
debian/cron.monthly | 4 +++-
debian/cron.weekly | 4 +++-
4 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index dcb63ad..6127c37 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,8 +2,9 @@ debsums (2.0.50) UNRELEASED; urgency=low
* add Greek translation, thanks to Georgios M. Zarkadas (Closes:
#642316)
+ * Send the output of the cron jobs to syslog as well (Closes: #651887)
- -- Ryan Niebur <ryan at debian.org> Tue, 20 Dec 2011 16:06:48 -0800
+ -- Ryan Niebur <ryan at debian.org> Tue, 20 Dec 2011 16:17:26 -0800
debsums (2.0.49) unstable; urgency=low
diff --git a/debian/cron.daily b/debian/cron.daily
index 8d50305..c5e6187 100755
--- a/debian/cron.daily
+++ b/debian/cron.daily
@@ -15,7 +15,9 @@ if [ -x /usr/bin/ionice ] &&
IONICE="/usr/bin/ionice -c3"
fi
-$IONICE $debsums -cs 2>&1 | egrep -vf "$ignorefile"
+exec 3>&1
+
+$IONICE $debsums -cs 2>&1 | egrep -vf "$ignorefile" | tee /proc/self/fd/3 | sed 's/^debsums: //' | logger -t debsums
# Exit with a normal status code even if errors (which could be ignored) were found
exit 0
diff --git a/debian/cron.monthly b/debian/cron.monthly
index 85b60dd..3c4dfff 100755
--- a/debian/cron.monthly
+++ b/debian/cron.monthly
@@ -15,7 +15,9 @@ if [ -x /usr/bin/ionice ] &&
IONICE="/usr/bin/ionice -c3"
fi
-$IONICE $debsums -cs 2>&1 | egrep -vf "$ignorefile"
+exec 3>&1
+
+$IONICE $debsums -cs 2>&1 | egrep -vf "$ignorefile" | tee /proc/self/fd/3 | sed 's/^debsums: //' | logger -t debsums
# Exit with a normal status code even if errors (which could be ignored) were found
exit 0
diff --git a/debian/cron.weekly b/debian/cron.weekly
index 3883ab9..3a15650 100755
--- a/debian/cron.weekly
+++ b/debian/cron.weekly
@@ -15,7 +15,9 @@ if [ -x /usr/bin/ionice ] &&
IONICE="/usr/bin/ionice -c3"
fi
-$IONICE $debsums -cs 2>&1 | egrep -vf "$ignorefile"
+exec 3>&1
+
+$IONICE $debsums -cs 2>&1 | egrep -vf "$ignorefile" | tee /proc/self/fd/3 | sed 's/^debsums: //' | logger -t debsums
# Exit with a normal status code even if errors (which could be ignored) were found
exit 0
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/debsums.git
More information about the Pkg-perl-cvs-commits
mailing list