From 60531aef82611cab27eb7395ba872392c08e7328 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 11 Mar 2020 10:46:04 +0000 Subject: [PATCH] daemon: Add --log-target=journal to pulseaudio.service When running under systemd from its `.service` file, the daemon is started with `--daemonize=no`. This means that the default logging target is `stderr` (see the documentation for `--log-target` in `pulse-daemon.conf(5)`). That works fine, but results in all the structured logging data from the `pa_log()` calls being thrown away and not making it into the journal. In order to preserve structured logging data, and hence make the messages in the journal a little more useful (for example, allowing the user to filter by message priority), explicitly pass `--log-target=journal` in the `.service` file. This should always be appropriate because the journal should always be used with systemd. Signed-off-by: Philip Withnall --- src/daemon/systemd/user/pulseaudio.service.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon/systemd/user/pulseaudio.service.in b/src/daemon/systemd/user/pulseaudio.service.in index e2640b6e5..ae0caf820 100644 --- a/src/daemon/systemd/user/pulseaudio.service.in +++ b/src/daemon/systemd/user/pulseaudio.service.in @@ -17,7 +17,7 @@ Requires=pulseaudio.socket ConditionUser=!root [Service] -ExecStart=@PA_BINARY@ --daemonize=no +ExecStart=@PA_BINARY@ --daemonize=no --log-target=journal LockPersonality=yes MemoryDenyWriteExecute=yes NoNewPrivileges=yes