- Implement ip-monitor.sh with flock for concurrency and atomic writes - Add IPv4 strict validation and multi-provider (DNS/HTTP) discovery - Configure systemd service with StateDirectory and EnvironmentFile - Add a 15-minute persistent timer for periodic IP checks - Include a run-once.sh bootstrap script for automated deployment
14 lines
416 B
Desktop File
14 lines
416 B
Desktop File
# This service is responsible for updating the Dynu DDNS record with the current IP address
|
|
# Copy this to /etc/systemd/system/dynu.service
|
|
# This script is intended to run via systemd
|
|
[Unit]
|
|
Description=Dynu IP Monitor & Updater
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
StateDirectory=dynu
|
|
EnvironmentFile=/etc/conf.d/dynu-environment
|
|
ExecStart=/usr/local/bin/ip-monitor.sh
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
TimeoutSec=30 |