Files
Pulse/scripts/systemd/pulse-update.timer
Pulse Monitor 60c60e5ed2 feat: add automatic stable update system
- Add systemd timer for daily update checks (2-6 AM window)
- Create pulse-auto-update.sh script with safe rollback on failure
- Add --enable-auto-updates flag to install script
- Prompt users during fresh install to enable auto-updates
- Respect autoUpdateEnabled flag in system.json
- Only install stable releases, never RCs
- Full logging to systemd journal
- Tested and verified working in container
2025-08-27 15:37:02 +00:00

19 lines
516 B
SYSTEMD

[Unit]
Description=Daily check for Pulse updates
Documentation=https://github.com/rcourtman/Pulse
After=network-online.target
Wants=network-online.target
[Timer]
# Run daily at 2 AM with a random delay up to 4 hours
# This spreads the load on GitHub and prevents all instances updating at once
OnCalendar=daily
OnCalendar=02:00
RandomizedDelaySec=4h
# Persist the last trigger time during downtime
Persistent=true
# Ensure we run if the system was off when scheduled
AccuracySec=1h
[Install]
WantedBy=timers.target