summaryrefslogtreecommitdiffstats
path: root/etc/periodic
diff options
context:
space:
mode:
authormatteo <matteo@FreeBSD.org>2006-02-07 08:21:06 +0000
committermatteo <matteo@FreeBSD.org>2006-02-07 08:21:06 +0000
commit603c4fe5f3a83a92460ea5867bb7a6ac33a46324 (patch)
tree5b218c3577f68f2f0ca201413f8719ace11ff454 /etc/periodic
parent8dc6fea589c4748735008b5777b5e28e6a7a740b (diff)
downloadFreeBSD-src-603c4fe5f3a83a92460ea5867bb7a6ac33a46324.zip
FreeBSD-src-603c4fe5f3a83a92460ea5867bb7a6ac33a46324.tar.gz
When there are no interesting information in output, exit with 0.
PR: conf/92299 Submitted by: Petr Rehor <prehor@gmail.com> Approved by: philip (mentor) MFC after: 3 days
Diffstat (limited to 'etc/periodic')
-rwxr-xr-xetc/periodic/daily/440.status-mailq6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/periodic/daily/440.status-mailq b/etc/periodic/daily/440.status-mailq
index 0aad053..244ff6e 100755
--- a/etc/periodic/daily/440.status-mailq
+++ b/etc/periodic/daily/440.status-mailq
@@ -33,7 +33,7 @@ case "$daily_status_mailq_enable" in
*)
mailq;;
esac | tee /dev/stderr | fgrep -v 'mqueue is empty' | wc -l)
- [ $rc -gt 1 ] && rc=1
+ [ $rc -gt 1 ] && rc=1 || rc=0
case "$daily_status_include_submit_mailq" in
[Yy][Ee][Ss])
@@ -42,7 +42,7 @@ case "$daily_status_mailq_enable" in
echo ""
echo "Mail in submit queue:"
- rc=$(case "$daily_status_mailq_shorten" in
+ rc_submit=$(case "$daily_status_mailq_shorten" in
[Yy][Ee][Ss])
mailq -Ac |
egrep -e '^[[:space:]]+[^[:space:]]+@' |
@@ -53,7 +53,7 @@ case "$daily_status_mailq_enable" in
*)
mailq -Ac;;
esac | tee /dev/stderr | fgrep -v 'mqueue is empty' | wc -l)
- [ $rc -gt 1 ] && rc=1
+ [ $rc_submit -gt 1 ] && rc=1
fi;;
esac
fi;;
OpenPOWER on IntegriCloud