diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2023-04-26 23:47:51 -0400 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2023-07-26 10:40:15 -0400 |
commit | 131746885ccd050c4a440d2129aea5bfa86c29e2 (patch) | |
tree | 20fa83136a543c3f05a401ed2a310834e2963382 /gnu/services/networking.scm | |
parent | a5d611c19bf62ee8709e8f03579a3c26ca8f893b (diff) | |
download | guix-131746885ccd050c4a440d2129aea5bfa86c29e2.tar guix-131746885ccd050c4a440d2129aea5bfa86c29e2.tar.gz |
services: mpd: Log to syslog by default.
Rationale: the tristate value was awkward to deal with, the default log file
name was odd (/var/log/mpd/log) and it required special attention to create
the 'mpd' parent directory as root and chowning it to the MPD user. It also
didn't match the default behavior of MPD, which is to log to systemd or syslog
unless a log file is specified.
* gnu/services/audio.scm (mpd-log-file-sanitizer): New procedure.
(mpd-configuration) [log-file]: Remove default maybe value. Add sanitizer.
(mpd-shepherd-service): Validate the log file parent directory exists and has
the right permissions. Conditionally add syslogd to requirements.
(mympd-log-to-sanitizer): New procedure.
(mympd-configuration) [log-to]: Change type to maybe-string. Update doc and
add sanitizer.
(mympd-shepherd-service) [requirement]: Fix to use syslogd. Adjust
accordingly.
[start] Adjust accordingly.
(mympd-log-rotation): Check log-to via maybe-value-set?.
* doc/guix.texi (Audio Services): Update doc.
Diffstat (limited to 'gnu/services/networking.scm')
0 files changed, 0 insertions, 0 deletions