ansible/roles/monit/templates/wireguard-dispatcher

6 lines
277 B
Plaintext
Raw Permalink Normal View History

check host wireguard address {{ monit_wireguard_ip }}
start program = "/usr/bin/s6-svc -u /var/run/s6/services/wireguard"
stop program = "/usr/bin/s6-svc -d /var/run/s6/services/wireguard"
if failed ping then alert
if failed ping for 5 cycles then restart