mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
services: herd: Allow to pass arguments to start-service.
* gnu/services/herd.scm (start-service)[arguments]: New optional argument.
This commit is contained in:
parent
b08bea0497
commit
ca0c43ecf0
1 changed files with 4 additions and 3 deletions
|
@ -252,9 +252,10 @@ (define (registered? service)
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue