services: wireguard: Add a 'configuration' action.

* gnu/services/vpn.scm (wireguard-shepherd-service) [actions]: New field.
This commit is contained in:
Maxim Cournoyer 2023-05-17 23:28:05 -04:00
parent d2385da87e
commit bdcf23cf69
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -916,6 +916,7 @@ (define (wireguard-shepherd-service config)
(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)