mpd: use systemd journal instead of syslog

MPD is using syslog for its logging output, while it could directly
log to systemd's journal, as this daemon is primarily used as a
systemd user service. This change makes MPD log to standard output,
which is captured by systemd.

See https://github.com/NixOS/nixpkgs/pull/57608, which does the same
thing to NixOS's MPD service.
This commit is contained in:
Hugo Geoffroy 2019-09-05 06:57:12 +02:00 committed by Robert Helgesson
parent d6b36f12ff
commit 05d91c5f50
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -16,7 +16,6 @@ let
''} ''}
state_file "${cfg.dataDir}/state" state_file "${cfg.dataDir}/state"
sticker_file "${cfg.dataDir}/sticker.sql" sticker_file "${cfg.dataDir}/sticker.sql"
log_file "syslog"
${optionalString (cfg.network.listenAddress != "any") ${optionalString (cfg.network.listenAddress != "any")
''bind_to_address "${cfg.network.listenAddress}"''} ''bind_to_address "${cfg.network.listenAddress}"''}