Files
nixos-core/scripts/dynu/dynu.service
T
kiskaadee a4a776ccd7 feat: implement robust Dynu DDNS discovery and update service
- 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
2026-04-25 14:28:13 -05:00

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