[systemd-bugs] [Bug 89111] New: journalctl exits with nonzero exit status if no messages in time span
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Feb 12 14:35:08 PST 2015
https://bugs.freedesktop.org/show_bug.cgi?id=89111
Bug ID: 89111
Summary: journalctl exits with nonzero exit status if no
messages in time span
Product: systemd
Version: unspecified
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: general
Assignee: systemd-bugs at lists.freedesktop.org
Reporter: quabla at hemio.de
QA Contact: systemd-bugs at lists.freedesktop.org
The following command as daily cron can sometimes serve as a simple logwatch
replacement:
journalctl --no-pager -q -p err -u my.service --until now --since -24h
However, if there are no warnings in the last 24h journalctl exits with nonzero
exit status and prints "Failed to determine timestamp: Cannot assign requested
address" to stderr.
First, it would be nice if (at least with -q) there is no output in this case
and the exit status is 0. Second, I do not understand the error message.
There is a similar bug #71548, however the exit status in this case is a bit
more reasonable, while the error message there is also very confusing.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20150212/193d71ee/attachment.html>
More information about the systemd-bugs
mailing list