summaryrefslogtreecommitdiffstats
path: root/units/systemd-journald.service.in
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2023-03-16 11:22:58 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2023-03-16 11:22:58 +0100
commita4180c0fb3a5f7e763c0757cedc791b4e2f9e633 (patch)
tree93fa94925406b588e546ffab80414fd87a469940 /units/systemd-journald.service.in
parentterminal-util: Don't assume terminal is dumb if connected to /dev/null (diff)
downloadsystemd-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.in1
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