From a4180c0fb3a5f7e763c0757cedc791b4e2f9e633 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Thu, 16 Mar 2023 11:22:58 +0100 Subject: journald-console: Add colors when forwarding to console Let's color output when we're forwarding to the console. To make this work, we inherit TERM from pid 1 and use it to decide whether we should output colors or not. --- units/systemd-journald.service.in | 1 + 1 file changed, 1 insertion(+) (limited to 'units') diff --git a/units/systemd-journald.service.in b/units/systemd-journald.service.in index ece872c770..79ec60c937 100644 --- a/units/systemd-journald.service.in +++ b/units/systemd-journald.service.in @@ -47,6 +47,7 @@ SystemCallArchitectures=native SystemCallErrorNumber=EPERM SystemCallFilter=@system-service Type=notify +PassEnvironment=TERM {{SERVICE_WATCHDOG}} # In case you're wondering why CAP_SYS_PTRACE is needed, access to -- cgit v1.2.1