aboutsummaryrefslogtreecommitdiff
path: root/gnu/services
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-04-25 17:28:21 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-07-25 13:04:17 -0400
commite1070ee16036f6dfb84c44aea4119e4db770356b (patch)
tree66833da2d1907d19f69ec70f780b1da001e3ad45 /gnu/services
parent6a57bf96128a35b500f640784a36d0d1fa8a5466 (diff)
downloadguix-e1070ee16036f6dfb84c44aea4119e4db770356b.tar.gz
guix-e1070ee16036f6dfb84c44aea4119e4db770356b.zip
services: mpd: Add an 'update' action to trigger a database update.
* gnu/services/audio.scm (mpd-shepherd-service): Register a new update action. * doc/guix.texi (Audio Services): Document it.
Diffstat (limited to 'gnu/services')
-rw-r--r--gnu/services/audio.scm11
1 files changed, 11 insertions, 0 deletions
diff --git a/gnu/services/audio.scm b/gnu/services/audio.scm
index 8c061da47f..6e4ce3f9fb 100644
--- a/gnu/services/audio.scm
+++ b/gnu/services/audio.scm
@@ -620,6 +620,17 @@ appended to the configuration.")
(format #t
"Issued SIGHUP to Service MPD (PID ~a)."
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.")))))))))))
(define (mpd-accounts config)
/span>doc: Document committer authorization....Ludovic Courtès 2020-03-13doc: Update guidance about Python 2 package variants....Leo Famulari 2020-03-10doc: Use HTTPS for external links....Vitaliy Shatrov 2020-03-09doc: Use an https link for Contributor Covenant....Jakub Kądziołka 2020-02-22etc: Add copyright....Oleg Pykhalov 2020-02-18doc: Document packaging guidelines for Rust crates....Efraim Flashner 2020-01-19Use HTTPS for www.emacswiki.org....Tobias Geerinckx-Rice 2020-01-09doc: Add a cooptation policy for commit access....Ludovic Courtès 2020-01-09doc: Encourage patch review....Ludovic Courtès 2020-01-09doc: Move "Commit Access" section from 'HACKING' to the manual....Ludovic Courtès 2020-01-09doc: Add "Tracking Bugs and Patches" section....Ludovic Courtès 2019-12-27doc: Mention "make authenticate"....Ludovic Courtès 2019-12-13doc: Link to "Building from Git" instead of quoting command to build Guix....Pierre Neidhardt 2019-12-08doc: Mention how to simulate a `guix pull' before submitting patches....Pierre Neidhardt 2019-12-08doc: Mention how to rebuild guix before submitting patches....Pierre Neidhardt 2019-11-09doc: Mention value /var to localstatedir option....zimoun 2019-09-07doc: Use @lisp instead of @example for Scheme snippets....Ludovic Courtès 2019-07-17doc: Reorder and clarify contributing instructions....Florian Pelz 2019-07-15doc: note how to install git send-email...Arne Babenhauserheide 2019-06-29doc: Remove references to hydra.gnu.org....Tobias Geerinckx-Rice