diff options
author | Bruno Victal <mirai@makinata.eu> | 2023-03-23 15:02:14 +0000 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2023-03-24 10:55:40 -0400 |
commit | 0185b2f9b20565f2c1b9249e6f61d2a8497101cf (patch) | |
tree | fe95df034e7af10627eb774e350394134a68ebc6 /gnu/services/audio.scm | |
parent | e0cb344b18034bfb41905c627d2b3b9dbf2e65fb (diff) | |
download | guix-0185b2f9b20565f2c1b9249e6f61d2a8497101cf.tar.gz guix-0185b2f9b20565f2c1b9249e6f61d2a8497101cf.zip |
services: mympd: Require 'syslog service when configured to log to syslog.
* gnu/services/audio.scm (mympd-shepherd-service): Depend on 'syslog when
configured to log to syslog.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Diffstat (limited to 'gnu/services/audio.scm')
-rw-r--r-- | gnu/services/audio.scm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/services/audio.scm b/gnu/services/audio.scm index d55b804ba9..848da651d7 100644 --- a/gnu/services/audio.scm +++ b/gnu/services/audio.scm @@ -752,7 +752,11 @@ prompting a pin from the user.") (let ((log-level* (format #f "MYMPD_LOGLEVEL=~a" log-level))) (shepherd-service (documentation "Run the myMPD daemon.") - (requirement `(loopback user-processes ,@shepherd-requirement)) + (requirement `(loopback user-processes + ,@(if (eq? log-to 'syslog) + '(syslog) + '()) + ,@shepherd-requirement)) (provision '(mympd)) (start #~(begin (let* ((pw (getpwnam #$user)) |