Add cf-ddns.service

This commit is contained in:
saifuddin 2025-09-12 13:23:59 +00:00
parent 1313b50995
commit 36072eb1ff

15
cf-ddns.service Normal file
View File

@ -0,0 +1,15 @@
[Unit]
Description=Cloudflare DDNS updater (local IPv4 via default route)
Wants=network-online.target
After=network-online.target
[Service]
Type=oneshot
EnvironmentFile=/etc/cf-ddns/cf-ddns.env
ExecStart=/usr/local/bin/cf-ddns
Nice=10
IOSchedulingClass=best-effort
[Install]
WantedBy=multi-user.target
EOF