guix-patches
[Top][All Lists]
Advanced

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

[bug#63402] [PATCH v5 4/5] services: wireguard: Add a 'configuration' ac


From: Maxim Cournoyer
Subject: [bug#63402] [PATCH v5 4/5] services: wireguard: Add a 'configuration' action.
Date: Thu, 18 May 2023 21:59:16 -0400

* gnu/services/vpn.scm (wireguard-shepherd-service) [actions]: New field.
---
 gnu/services/vpn.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/services/vpn.scm b/gnu/services/vpn.scm
index 8740722b6f..e1d9f5f044 100644
--- a/gnu/services/vpn.scm
+++ b/gnu/services/vpn.scm
@@ -914,6 +914,7 @@ (define (wireguard-shepherd-service config)
              (stop #~(lambda _
                        (invoke #$wg-quick "down" #$config)
                        #f))                       ;stopped!
+             (actions (list (shepherd-configuration-action config)))
              (documentation "Run the Wireguard VPN tunnel"))))))
 
 (define (wireguard-monitoring-jobs config)
-- 
2.40.1






reply via email to

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