me
/
guix
Archived
1
0
Fork 0

services: herd: Allow to pass arguments to start-service.

* gnu/services/herd.scm (start-service)[arguments]: New optional argument.
master
Mathieu Othacehe 2018-12-05 14:13:38 +09:00 committed by Ludovic Courtès
parent b08bea0497
commit ca0c43ecf0
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 4 additions and 3 deletions

View File

@ -252,9 +252,10 @@ when passed a service with an already-registered name."
services
(remove registered? services))))))
(define (start-service name)
(with-shepherd-action name ('start) result
result))
(define* (start-service name #:optional (arguments '()))
(invoke-action name 'start arguments
(lambda (result)
result)))
(define (stop-service name)
(with-shepherd-action name ('stop) result