systemctl: color ignored exit status in yellow, not red
authorChristian Hesse <mail@eworm.de>
Fri, 30 Sep 2022 08:26:43 +0000 (10:26 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 30 Sep 2022 14:02:50 +0000 (15:02 +0100)
commite879434df550c6dcfc02f23e613f4dda7f741089
tree45a34b0f75300e32f0b89fc5d036a562d6330637
parent13556724379a52951eb1977c2b7989a0159fd77c
systemctl: color ignored exit status in yellow, not red

If the executable path is prefixed with "-", an exit code of the command
normally considered a failure (i.e. non-zero exit status or abnormal exit
due to signal) is recorded, but has no further effect and is considered
equivalent to success.

Let's honor this with `systemctl status`, and color ignored exit status
in yellow, not red.
src/systemctl/systemctl-show.c