[Unit] Description=Check the WireGuard wg0 tunnel every minute and heal it if needed [Timer] # First check shortly after boot, then every minute. Persistent=true catches up # if the machine was suspended/offline. OnBootSec=30s OnUnitActiveSec=60s AccuracySec=15s RandomizedDelaySec=5s Persistent=true [Install] WantedBy=timers.target