mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
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>
This commit is contained in:
parent
e0cb344b18
commit
0185b2f9b2
1 changed files with 5 additions and 1 deletions
|
@ -752,7 +752,11 @@ (define (mympd-shepherd-service config)
|
||||||
(let ((log-level* (format #f "MYMPD_LOGLEVEL=~a" log-level)))
|
(let ((log-level* (format #f "MYMPD_LOGLEVEL=~a" log-level)))
|
||||||
(shepherd-service
|
(shepherd-service
|
||||||
(documentation "Run the myMPD daemon.")
|
(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))
|
(provision '(mympd))
|
||||||
(start #~(begin
|
(start #~(begin
|
||||||
(let* ((pw (getpwnam #$user))
|
(let* ((pw (getpwnam #$user))
|
||||||
|
|
Loading…
Reference in a new issue