Bug#806291: systemd: systemctl status ignores -n argument
Michael Biebl
biebl at debian.org
Thu Nov 26 14:59:55 GMT 2015
Am 26.11.2015 um 08:00 schrieb Eduard Bloch:
> Package: systemd
> Version: 228-2
>
> Dear Maintainer,
>
> * What led up to the situation?
>
> I created a buggy configuration of apt-cacher-ng and wondered why it did not start. When I run the service from command line, it dumps a couple of usefull hints to STDERR. I expected to see this in "systemctl status" output. I saw only ten lines and this contained only useless cruft, something about "hold-off time over" etc.
>
> * What exactly did you do (or not do) that was effective (or
> ineffective)?
>
> Since I expected useful information to be before this cruft, I used the
> -n option as described in the systemctl manpage. -n 20, actually.
>
> * What was the outcome of this action?
>
> The same output was displayed. Only 10 lines with useless information. Feels
> like -n ... value is simply ignored, I can set -n100 or -n1000, makes no
> difference.
>
Works here. But I actually need a service which produces more then 10
lines of output when started.
Remember that status only shows the logs from the most recent
start/stop/restart attempt.
I think it would be confusing if it showed output from, say the last
boot. For that you need journalctl indeed.
And if the daemon itself doesn't log to syslog or stdout, journald
obviously doesn't catch that.
So from what I can see, there is not really a bug here.
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20151126/caaf929a/attachment-0002.sig>
More information about the Pkg-systemd-maintainers
mailing list