diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-09-24 20:58:04 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-10-21 18:31:10 -0400 |
commit | 7fa0e95e3d49910ef04c1f1a8d9bc8b52b06681e (patch) | |
tree | fb0af2c4872b10a6622d1b727a38fc1490e0a138 /units/rescue.service.in | |
parent | 1724c7040a5d314370e932673a4175eabb136c86 (diff) |
systemctl: suppress errors with "show" for nonexistent units and propertiessystemd/v231-4
Show is documented to be program-parseable, and printing the warning about
about a non-existent unit, while useful for humans, broke a lot of scripts.
Restore previous behaviour of returning success and printing empty or useless
stuff for units which do not exist, and printing empty values for properties
which do not exists.
With SYSTEMD_LOG_LEVEL=debug, hints are printed, but the return value is
still 0.
This undoes parts of e33a06a and 3dced37b7 and fixes #3856.
We might consider adding an explicit switch to fail on missing units/properties
(e.g. --ensure-exists or similar), and make -P foobar equivalent to
--ensure-exists --property=foobar.
(cherry picked from commit bd5b9f0a12dd9c1947b11534e99c395ddf44caa9)
Diffstat (limited to 'units/rescue.service.in')
0 files changed, 0 insertions, 0 deletions