Skip to content

Instantly share code, notes, and snippets.

@sirkirby
Created July 3, 2026 20:03
Show Gist options
  • Select an option

  • Save sirkirby/cdecbdbe901369a691a1d1663f25a025 to your computer and use it in GitHub Desktop.

Select an option

Save sirkirby/cdecbdbe901369a691a1d1663f25a025 to your computer and use it in GitHub Desktop.
adguard health check systemd
[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