run: allow setting output format

This is useful when moving from `--pty` or `--pipe` to using
`--verbose`: you can use `--verbose-output=cat` to get similar output on
stdout while still having all of the advantages of `--verbose` over the
other options.
This commit is contained in:
Arnout Engelen
2026-04-13 13:38:04 +02:00
committed by Lennart Poettering
parent 2c664b9531
commit 086707ba79
5 changed files with 33 additions and 4 deletions
+1 -1
View File
@@ -402,7 +402,7 @@ int verb_start(int argc, char *argv[], uintptr_t _data, void *userdata) {
ret = enqueue_marked_jobs(bus, w);
else {
if (arg_verbose)
(void) journal_fork(arg_runtime_scope, names, &journal_pid);
(void) journal_fork(arg_runtime_scope, names, arg_output, &journal_pid);
STRV_FOREACH(name, names) {
_cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;