Add Cloudflare DDNS updater scripts and systemd configurations

This commit is contained in:
Nikholas Pcenicni
2026-03-21 11:09:18 -04:00
parent 60348eef9b
commit a4d8165dc2
8 changed files with 162 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
[Unit]
Description=Cloudflare DDNS updater
After=network-online.target
Wants=network-online.target
[Service]
Type=oneshot
ExecStart=/opt/cloudflare-ddns/cf-ddns.sh
WorkingDirectory=/opt/cloudflare-ddns

View File

@@ -0,0 +1,10 @@
[Unit]
Description=Run Cloudflare DDNS every 5 minutes
[Timer]
OnBootSec=1min
OnUnitActiveSec=5min
Persistent=true
[Install]
WantedBy=timers.target

View File

@@ -0,0 +1,9 @@
[Unit]
Description=Git sync for cloudflare-ddns repo
After=network-online.target
Wants=network-online.target
[Service]
Type=oneshot
WorkingDirectory=/opt/cloudflare-ddns
ExecStart=/opt/cloudflare-ddns/git-sync.sh

View File

@@ -0,0 +1,10 @@
[Unit]
Description=Run git-sync every 1 minute
[Timer]
OnBootSec=30s
OnUnitActiveSec=60s
Persistent=true
[Install]
WantedBy=timers.target