From 0185b2f9b20565f2c1b9249e6f61d2a8497101cf Mon Sep 17 00:00:00 2001 From: Bruno Victal Date: Thu, 23 Mar 2023 15:02:14 +0000 Subject: [PATCH] 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 Modified-by: Maxim Cournoyer --- gnu/services/audio.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 @@ (define (mympd-shepherd-service config) (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))