Checks public WAN IP every 5 minutes via systemd timer. On change: - Updates A-records via DirectAdmin API (login key auth) - Sends WhatsApp notification via wwebjs-api
11 lines
163 B
SYSTEMD
11 lines
163 B
SYSTEMD
[Unit]
|
|
Description=Run WAN IP Guard every 5 minutes
|
|
|
|
[Timer]
|
|
OnBootSec=1min
|
|
OnUnitActiveSec=5min
|
|
AccuracySec=30s
|
|
Persistent=true
|
|
|
|
[Install]
|
|
WantedBy=timers.target
|