summary refs log tree commit diff
diff options
context:
space:
mode:
authorBruno Victal <mirai@makinata.eu>2023-03-23 15:02:14 +0000
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-03-24 10:55:40 -0400
commit0185b2f9b20565f2c1b9249e6f61d2a8497101cf (patch)
treefe95df034e7af10627eb774e350394134a68ebc6
parente0cb344b18034bfb41905c627d2b3b9dbf2e65fb (diff)
downloadguix-0185b2f9b20565f2c1b9249e6f61d2a8497101cf.tar.gz
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>
-rw-r--r--gnu/services/audio.scm6
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))