/* We don't reset the terminal if this is just about output */
return open_terminal_as(exec_context_tty_path(context), O_WRONLY, fileno);
+ case EXEC_OUTPUT_DLOG_OR_JOURNAL:
+ r = wire_up_dlog(fileno, ident);
+ if (r >= 0)
+ return fileno;
+
+ o = EXEC_OUTPUT_JOURNAL; // used inside `connect_logger_as`, but let's not involve dlog there
+ /* fallthrough */
+
case EXEC_OUTPUT_SYSLOG:
case EXEC_OUTPUT_SYSLOG_AND_CONSOLE:
case EXEC_OUTPUT_KMSG:
[EXEC_OUTPUT_DLOG] = "dlog",
[EXEC_OUTPUT_DLOG_OR_NULL] = "dlog|null",
[EXEC_OUTPUT_DLOG_OR_KMSG] = "dlog|kmsg",
+ [EXEC_OUTPUT_DLOG_OR_JOURNAL] = "dlog|journal",
};
DEFINE_STRING_TABLE_LOOKUP(exec_output, ExecOutput);
EXEC_OUTPUT_DLOG,
EXEC_OUTPUT_DLOG_OR_NULL,
EXEC_OUTPUT_DLOG_OR_KMSG,
+ EXEC_OUTPUT_DLOG_OR_JOURNAL,
_EXEC_OUTPUT_MAX,
_EXEC_OUTPUT_INVALID = -1
} ExecOutput;