diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2022-06-20 22:37:26 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2022-06-22 22:29:48 +0200 |
| commit | 3c0c6ee57315baf446e77730f5abdec62f516f1b (patch) | |
| tree | 2f95a63116f641838c27eb2b843d94457b2d0ca4 /gnu/services/vpn.scm | |
| parent | 4f9ac2afc76048a8e042a8c874d3a170e7655742 (diff) | |
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.
Diffstat (limited to 'gnu/services/vpn.scm')
| -rw-r--r-- | gnu/services/vpn.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/services/vpn.scm b/gnu/services/vpn.scm index 8be632d55ff..6a289d357a6 100644 --- a/gnu/services/vpn.scm +++ b/gnu/services/vpn.scm | |||
| @@ -814,7 +814,8 @@ PostUp = ~a set %i private-key ~a | |||
| 814 | (start #~(lambda _ | 814 | (start #~(lambda _ |
| 815 | (invoke #$wg-quick "up" #$config))) | 815 | (invoke #$wg-quick "up" #$config))) |
| 816 | (stop #~(lambda _ | 816 | (stop #~(lambda _ |
| 817 | (invoke #$wg-quick "down" #$config))) | 817 | (invoke #$wg-quick "down" #$config) |
| 818 | #f)) ;stopped! | ||
| 818 | (documentation "Run the Wireguard VPN tunnel")))))) | 819 | (documentation "Run the Wireguard VPN tunnel")))))) |
| 819 | 820 | ||
| 820 | (define wireguard-service-type | 821 | (define wireguard-service-type |
