services: wireguard: Add a 'configuration' action.
* gnu/services/vpn.scm (wireguard-shepherd-service) [actions]: New field.
parent
d2385da87e
commit
bdcf23cf69
|
@ -916,6 +916,7 @@ public key, if any."
|
||||||
(stop #~(lambda _
|
(stop #~(lambda _
|
||||||
(invoke #$wg-quick "down" #$config)
|
(invoke #$wg-quick "down" #$config)
|
||||||
#f)) ;stopped!
|
#f)) ;stopped!
|
||||||
|
(actions (list (shepherd-configuration-action config)))
|
||||||
(documentation "Run the Wireguard VPN tunnel"))))))
|
(documentation "Run the Wireguard VPN tunnel"))))))
|
||||||
|
|
||||||
(define (wireguard-monitoring-jobs config)
|
(define (wireguard-monitoring-jobs config)
|
||||||
|
|
Reference in New Issue