me
/
guix
Archived
1
0
Fork 0

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>
master
Bruno Victal 2023-03-23 15:02:14 +00:00 committed by Maxim Cournoyer
parent e0cb344b18
commit 0185b2f9b2
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 5 additions and 1 deletions

View File

@ -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))