/gnu/

log/gnu/services/audio.scm'>
path: root/gnu/services/audio.scm
AgeCommit message (Collapse)Author
2020-12-06services: mpd: Make /var/run/mpd/USER user-owned.Ludovic Courtès
Fixes <https://bugs.gnu.org/44820>. Reported by Simon <lists@netpanic.org>. This is a followup to bb124f6e9c0af0a23736f233c2ea2c9c9b4a40a6. * gnu/services/audio.scm (mpd-service-activation): Chown the parent of DIRECTORY as well.
2020-11-06services: mpd: Fix daemon startup.Ludovic Courtès
Until now it would wait for a PID file that'd never come. * gnu/services/audio.scm (mpd-shepherd-service): Add 'requirement'. Remove #:pid-file from 'start'. (mpd-service-activation): Create the ".mpd" directory since that's what the daemon expects.
2020-11-06services: mpd: Always create the "mpd" user account.Ludovic Courtès
* gnu/services/audio.scm (%mpd-accounts): New variable. (mpd-service-type)[extensions]: Add ACCOUNT-SERVICE-TYPE extension.
2020-11-06services: mpd: Do not eagerly look for a user.Maxim Cournoyer
Running 'guix system search mpd' would throw a backtrace because the mpd-shepherd-service service start Gexp contained an unquoted call to 'getpwnam', which would look for a missing 'mpd' user and fail. * gnu/services/audio.scm (mpd-shepherd-service): gexp-unquote only the relevant variable rather than the whole expression.