summary refs log tree commit diff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-05-17 23:28:05 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-07-21 11:58:45 -0400
commitbdcf23cf69d47a1b576e70da63da08518329c0f5 (patch)
treeb01982235946f5c813d32faa1496e3f9650cf393
parentd2385da87e9c5f93ffb8af246cd28a4c2e8fcc0f (diff)
downloadguix-bdcf23cf69d47a1b576e70da63da08518329c0f5.tar.gz
services: wireguard: Add a 'configuration' action.
* gnu/services/vpn.scm (wireguard-shepherd-service) [actions]: New field.
-rw-r--r--gnu/services/vpn.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/gnu/services/vpn.scm b/gnu/services/vpn.scm
index 8f450bacb1..9c8243d131 100644
--- a/gnu/services/vpn.scm
+++ b/gnu/services/vpn.scm
@@ -916,6 +916,7 @@ public key, if any."
              (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)