[pulseaudio-commits] [Git][pulseaudio/pulseaudio][master] daemon: Add --log-target=journal to pulseaudio.service
Arun Raghavan
gitlab at gitlab.freedesktop.org
Thu Mar 12 02:23:57 UTC 2020
Arun Raghavan pushed to branch master at PulseAudio / pulseaudio
Commits:
60531aef by Philip Withnall at 2020-03-11T10:46:04+00:00
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 <withnall at endlessm.com>
- - - - -
1 changed file:
- src/daemon/systemd/user/pulseaudio.service.in
Changes:
=====================================
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
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/60531aef82611cab27eb7395ba872392c08e7328
--
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/60531aef82611cab27eb7395ba872392c08e7328
You're receiving this email because of your account on gitlab.freedesktop.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-commits/attachments/20200312/3d44b564/attachment.htm>
More information about the pulseaudio-commits
mailing list