From 3c0c6ee57315baf446e77730f5abdec62f516f1b Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Mon, 20 Jun 2022 22:37:26 +0200 Subject: 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 -- cgit v1.2.3
aboutsummaryrefslogtreecommitdiff