guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: services: herd: Add restart-service.


From: guix-commits
Subject: branch master updated: services: herd: Add restart-service.
Date: Tue, 03 Mar 2020 09:00:43 -0500

This is an automated email from the git hooks/post-receive script.

mothacehe pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 8f5a0a9  services: herd: Add restart-service.
8f5a0a9 is described below

commit 8f5a0a97b1d04e8ade8c16694dcb72aed176c595
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 | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/gnu/services/herd.scm b/gnu/services/herd.scm
index 112a7dc..35d6937 100644
--- a/gnu/services/herd.scm
+++ b/gnu/services/herd.scm
@@ -1,6 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2016, 2017, 2018, 2019 Ludovic Courtès <address@hidden>
-;;; Copyright © 2017 Mathieu Othacehe <address@hidden>
+;;; Copyright © 2017, 2020 Mathieu Othacehe <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]