[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
16/67: services: herd: Allow to pass arguments to start-service.
From: |
guix-commits |
Subject: |
16/67: services: herd: Allow to pass arguments to start-service. |
Date: |
Wed, 16 Jan 2019 19:00:37 -0500 (EST) |
civodul pushed a commit to branch wip-newt-installer
in repository guix.
commit 8c28605b04a0bc7635c8d32ee5c5085efd921f5f
Author: Mathieu Othacehe <address@hidden>
Date: Wed Dec 5 14:13:38 2018 +0900
services: herd: Allow to pass arguments to start-service.
* gnu/services/herd.scm (start-service)[arguments]: New optional argument.
---
gnu/services/herd.scm | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/gnu/services/herd.scm b/gnu/services/herd.scm
index 8ff8177..9fe757f 100644
--- a/gnu/services/herd.scm
+++ b/gnu/services/herd.scm
@@ -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
- branch wip-newt-installer created (now e12a60d), guix-commits, 2019/01/16
- 01/67: guile: newt: Update revision to 3., guix-commits, 2019/01/16
- 06/67: installer: newt: Locate the logo within local-file., guix-commits, 2019/01/16
- 02/67: services: kmscon: Remove virtual-terminal requirement., guix-commits, 2019/01/16
- 09/67: guix: self: Do not install (gnu system install)., guix-commits, 2019/01/16
- 16/67: services: herd: Allow to pass arguments to start-service.,
guix-commits <=
- 11/67: installer: Rewrite welcome page., guix-commits, 2019/01/16
- 15/67: build: syscalls: Add device-in-use?., guix-commits, 2019/01/16
- 21/67: installer: Add new utils., guix-commits, 2019/01/16
- 20/67: installer: Remove "selection" from all titles., guix-commits, 2019/01/16
- 28/67: installer: Fix ethernet connection., guix-commits, 2019/01/16
- 10/67: gnu: installer: Launch the installer as kmscon login-program., guix-commits, 2019/01/16
- 19/67: file-systems: Export read-partition-label and read-partition-uuid., guix-commits, 2019/01/16
- 14/67: tests: Rename %test-encrypted-os to %test-encrypted-root-os., guix-commits, 2019/01/16
- 18/67: gnu: Add guile-parted., guix-commits, 2019/01/16
- 33/67: installer: Reorder local.mk., guix-commits, 2019/01/16