aboutsummaryrefslogtreecommitdiff
path: root/src/rc/rc-status.c
diff options
context:
space:
mode:
authorManuel RĂ¼ger <manuel@rueg.eu>2020-04-19 13:00:43 +0200
committerWilliam Hubbs <w.d.hubbs@gmail.com>2020-12-20 16:01:02 -0600
commit4b2a61f1b8b786600e39ba1a223ff8d9b389b275 (patch)
treeaff42654ee47a68391f56ae888af4eb3f0646ef1 /src/rc/rc-status.c
parent62bc463c63a3beeeead0b6fb164f7c7e9b917849 (diff)
rc-status: Remove noise from ini-formatted output
Otherwise this would create the following output: rc-status -f ini * Caching service dependencies ... [ ok ] [default] dbus = started NetworkManager = started syslog-ng = started ... This fixes #364.
Diffstat (limited to 'src/rc/rc-status.c')
-rw-r--r--src/rc/rc-status.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rc/rc-status.c b/src/rc/rc-status.c
index d2f66cb4..cd32c091 100644
--- a/src/rc/rc-status.c
+++ b/src/rc/rc-status.c
@@ -291,9 +291,10 @@ int main(int argc, char **argv)
goto exit;
/* NOTREACHED */
case 'f':
- if (strcasecmp(optarg, "ini") == 0)
+ if (strcasecmp(optarg, "ini") == 0) {
format = FORMAT_INI;
- else
+ setenv("EINFO_QUIET", "YES", 1);
+ } else
eerrorx("%s: invalid argument to --format switch\n", applet);
break;
case 'l':