Created
July 3, 2026 20:03
-
-
Save sirkirby/cdecbdbe901369a691a1d1663f25a025 to your computer and use it in GitHub Desktop.
adguard health check systemd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=AdGuard DNS anycast VIP health gate | |
| After=network-online.target AdGuardHome.service | |
| Wants=network-online.target | |
| [Service] | |
| Type=simple | |
| ExecStart=/usr/local/bin/dns-vip-health.sh | |
| # Drop the VIP if the gate stops, so a dead node never keeps advertising. | |
| ExecStopPost=-/usr/sbin/ip addr del 10.0.53.53/32 dev lo | |
| Restart=always | |
| RestartSec=2 | |
| [Install] | |
| WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment