me
/
guix
Archived
1
0
Fork 0

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.
master
Ludovic Courtès 2022-06-20 22:37:26 +02:00
parent 4f9ac2afc7
commit 3c0c6ee573
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 2 additions and 1 deletions

View File

@ -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