Unattended upgrade setting for selfhosted instances with rexctl

(#4343) Feature Closed: Shipped security self-hosting

Thread

Comment by Rex
RexSystem 1 vote 9 replies
Status changed from Planned to Shipped
rexctl auto-upgrade on turns on daily upgrades with a systemd timer or cron, with optional --notify webhook (fluxerapp/fluxer#3666), in release 2026.1027.192901
Comment by Ahryoo
Ahryoo OP1 vote 8 replies
WOW that was fast!
Comment by Hampus
HampusStaff 2 votes 7 replies
(I may or may not have actually started working on this implementation a little yesterday because it was cool)
Comment by Ahryoo
Ahryoo OP1 vote 6 replies
Love it!
rexctl auto-upgrade
✓ rexctl upgrades Fluxer every day between 05:00 and 05:30.
Next run  Wed 2026-10-28 05:07:53 CET
Last run  Tue 2026-10-27 21:00:23 CET
Notify    https://ntfy.sh/…
Log       journalctl -u fluxer-upgrade.service
Is there a specific reason for the 30min randomizer?
Comment by Hampus
HampusStaff 1 vote 5 replies
mostly so that not every instance hits the release check and the image registry at the same second, since a lot of people will keep the default 04:00. it spreads the runs over the next 30 minutes, so with --at 04:00 it runs sometime between 04:00 and 04:30, and only the systemd timer does this for now because of its builtin RandomizedDelaySec (haven't looked into how to do it for cron in a good way yet)
Comment by Ahryoo
Ahryoo OP1 vote 4 replies
Alright that makes sense to me, I totally get that. As for cron - I am by no means an expert, but couldn't you just put a random sleep in front of the command? Something like:
0 4 * * * root sleep $(shuf -i 0-1799 -n 1); rexctl upgrade --yes ...