diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-03-16 11:22:58 +0100 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-03-16 11:22:58 +0100 |
commit | a4180c0fb3a5f7e763c0757cedc791b4e2f9e633 (patch) | |
tree | 93fa94925406b588e546ffab80414fd87a469940 /units/systemd-journald.service.in | |
parent | terminal-util: Don't assume terminal is dumb if connected to /dev/null (diff) | |
download | systemd-a4180c0fb3a5f7e763c0757cedc791b4e2f9e633.tar.xz systemd-a4180c0fb3a5f7e763c0757cedc791b4e2f9e633.zip |
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.
Diffstat (limited to 'units/systemd-journald.service.in')
-rw-r--r-- | units/systemd-journald.service.in | 1 |
1 files changed, 1 insertions, 0 deletions
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 |