[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/11: services: wireguard: Shepherd 'stop' method really stops.
From: |
guix-commits |
Subject: |
01/11: services: wireguard: Shepherd 'stop' method really stops. |
Date: |
Wed, 22 Jun 2022 17:50:16 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 3c0c6ee57315baf446e77730f5abdec62f516f1b
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Jun 20 22:37:26 2022 +0200
services: wireguard: Shepherd 'stop' method really stops.
Until now the 'stop' method would return #t, which shepherd would
interpret as "services could not be stopped".
* gnu/services/vpn.scm (wireguard-shepherd-service): Have 'stop' return #f.
---
gnu/services/vpn.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gnu/services/vpn.scm b/gnu/services/vpn.scm
index 8be632d55f..6a289d357a 100644
--- a/gnu/services/vpn.scm
+++ b/gnu/services/vpn.scm
@@ -814,7 +814,8 @@ PostUp = ~a set %i private-key ~a
(start #~(lambda _
(invoke #$wg-quick "up" #$config)))
(stop #~(lambda _
- (invoke #$wg-quick "down" #$config)))
+ (invoke #$wg-quick "down" #$config)
+ #f)) ;stopped!
(documentation "Run the Wireguard VPN tunnel"))))))
(define wireguard-service-type
- branch master updated (4f9ac2afc7 -> 2873433c72), guix-commits, 2022/06/22
- 01/11: services: wireguard: Shepherd 'stop' method really stops.,
guix-commits <=
- 03/11: gnu: sent: Add farbfeld to propagated-inputs., guix-commits, 2022/06/22
- 02/11: gnu: Add farbfeld., guix-commits, 2022/06/22
- 09/11: style: Keep values next to their keyword., guix-commits, 2022/06/22
- 08/11: gnu: libjxl: Update to 0.6.1-0.b7076f18., guix-commits, 2022/06/22
- 10/11: refresh: Repurpose '-L' for '--load-path'., guix-commits, 2022/06/22
- 05/11: gnu: sent: Remove input labels., guix-commits, 2022/06/22
- 04/11: gnu: sent: Apply guix style, guix-commits, 2022/06/22
- 11/11: news: Add entry for 'guix refresh -L' change., guix-commits, 2022/06/22
- 07/11: gnu: google-highway: Update to 0.17.0., guix-commits, 2022/06/22
- 06/11: gnu: reuse: Update to 1.0.0., guix-commits, 2022/06/22