]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: include -M or -H arguments in the hint 2622/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 15 Feb 2016 16:57:48 +0000 (11:57 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 15 Feb 2016 20:23:45 +0000 (15:23 -0500)
commit4524439edb7d6050ba8a7779cdb7305e6ceb621c
tree9131fa541ec7bcf8c59a245057c7a4c73b3b4783
parent8eff97a103581750d90c7e0c2f984dc261226ccc
systemctl: include -M or -H arguments in the hint

https://github.com/systemd/systemd/issues/2431

Some newlines are added, but the output will still exceed 80 columns in many
cases. The fallback for oom conditions is changed from "n/a" to something
"<service>", and a similar pattern is used for the new code. This way we
have a realistic fallback for oom, which seems nicer than making the whole
function return an error code which would then have to be propagated.

$ systemctl -M fedora-rawhide restart systemd-networkd.service
Job for systemd-networkd.service failed because start of the service was attempted too often.
See "systemctl -M fedora-rawhide status systemd-networkd.service" and "journalctl -M fedora-rawhide -xe" for details.
To force a start use "systemctl -M fedora-rawhide reset-failed systemd-networkd.service"
followed by "systemctl -M fedora-rawhide start systemd-networkd.service" again.
src/shared/bus-util.c
src/shared/bus-util.h
src/systemctl/systemctl.c