Revert "services: mpd: Add an 'update' action to trigger a database update."
This reverts commit e1070ee160
. Rationale: this
only works with the default 'endpoints'. The 'auto-update?' option should be
sufficient to trigger a database update automatically anyway.
This commit is contained in:
parent
53138a393b
commit
c7e45139fa
1 changed files with 0 additions and 11 deletions
|
@ -663,17 +663,6 @@ (define (init-directory directory)
|
||||||
(format #t
|
(format #t
|
||||||
"Issued SIGHUP to Service MPD (PID ~a)."
|
"Issued SIGHUP to Service MPD (PID ~a)."
|
||||||
pid))
|
pid))
|
||||||
(format #t "Service MPD is not running.")))))
|
|
||||||
(shepherd-action
|
|
||||||
(name 'update)
|
|
||||||
(documentation "Request MPD to update its music database.")
|
|
||||||
(procedure
|
|
||||||
#~(lambda (pid)
|
|
||||||
(if pid
|
|
||||||
(begin
|
|
||||||
(invoke #$(file-append mpd-mpc "/bin/mpc") "update")
|
|
||||||
(format #t "Database update requested for service \
|
|
||||||
MPD (PID ~a)." pid))
|
|
||||||
(format #t "Service MPD is not running.")))))))))))
|
(format #t "Service MPD is not running.")))))))))))
|
||||||
|
|
||||||
(define (mpd-accounts config)
|
(define (mpd-accounts config)
|
||||||
|
|
Loading…
Reference in a new issue