Add Cloudflare DDNS updater scripts and systemd configurations
This commit is contained in:
9
dyndns/systemd/cf-ddns.service
Normal file
9
dyndns/systemd/cf-ddns.service
Normal 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
|
||||
10
dyndns/systemd/cf-ddns.timer
Normal file
10
dyndns/systemd/cf-ddns.timer
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Run Cloudflare DDNS every 5 minutes
|
||||
|
||||
[Timer]
|
||||
OnBootSec=1min
|
||||
OnUnitActiveSec=5min
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
9
dyndns/systemd/git-sync.service
Normal file
9
dyndns/systemd/git-sync.service
Normal 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
|
||||
10
dyndns/systemd/git-sync.timer
Normal file
10
dyndns/systemd/git-sync.timer
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Run git-sync every 1 minute
|
||||
|
||||
[Timer]
|
||||
OnBootSec=30s
|
||||
OnUnitActiveSec=60s
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user