[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/10: services: herd: Add restart-service.
From: |
guix-commits |
Subject: |
10/10: services: herd: Add restart-service. |
Date: |
Thu, 27 Feb 2020 11:00:32 -0500 (EST) |
mothacehe pushed a commit to branch wip-installer-tests
in repository guix.
commit 2fb51ba504d6e597999b6579ec1d065b7bea34bc
Author: Mathieu Othacehe <address@hidden>
AuthorDate: Thu Feb 27 16:42:36 2020 +0100
services: herd: Add restart-service.
* gnu/services/herd.scm (restart-service): New exported procedure.
---
gnu/services/herd.scm | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/gnu/services/herd.scm b/gnu/services/herd.scm
index 112a7dc..f1475ce 100644
--- a/gnu/services/herd.scm
+++ b/gnu/services/herd.scm
@@ -55,7 +55,8 @@
load-services
load-services/safe
start-service
- stop-service))
+ stop-service
+ restart-service))
;;; Commentary:
;;;
@@ -272,6 +273,10 @@ when passed a service with an already-registered name."
(with-shepherd-action name ('stop) result
result))
+(define (restart-service name)
+ (with-shepherd-action name ('restart) result
+ result))
+
;; Local Variables:
;; eval: (put 'alist-let* 'scheme-indent-function 2)
;; eval: (put 'with-shepherd 'scheme-indent-function 1)
- branch wip-installer-tests created (now 2fb51ba), guix-commits, 2020/02/27
- 04/10: installer: Bypass connectivity check when /tmp/installer-assume-online exists., guix-commits, 2020/02/27
- 05/10: installer: Run commands without hopping through the shell., guix-commits, 2020/02/27
- 10/10: services: herd: Add restart-service.,
guix-commits <=
- 01/10: tests: 'run-basic-test' can enter a root password., guix-commits, 2020/02/27
- 06/10: installer: Honor /tmp/installer-system-init-options., guix-commits, 2020/02/27
- 08/10: installer: Fix cow-store umount., guix-commits, 2020/02/27
- 09/10: tests: install: Add %test-gui-installed-os-encrypted., guix-commits, 2020/02/27
- 02/10: installer: Use a Guile-Newt snapshot that supports 'form-watch-fd'., guix-commits, 2020/02/27
- 07/10: tests: install: Add "gui-installed-os"., guix-commits, 2020/02/27
- 03/10: installer: Implement a dialog on /var/guix/installer-socket., guix-commits, 2020/02/27