#856268 unattended-upgrades: reboot on a specific day

#856268#5
Date:
2017-02-27 09:59:12 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***
Hi,

the unattended-upgrades packages is fine.

It would be great if there would be a reboot option for a specific day
(e.g. on Sunday) instead of every day. Some servers need to work on
weekdays.

Sure it is possible to create a cron job but I don't want to reboot if I
don't have to.

Is this additional functionality planned?

Greetings and thanks,
John

*** End of the template - remove these template lines ***

#856268#14
Date:
2019-09-19 09:19:00 UTC
From:
To:
Hi Johannes,

While I see the value of not restarting on weekdays I believe adding
this feature to u-u is not the best way to go. It would add logic that
can't satisfy every use case.
For example, sometimes there are workdays on weekends, sometimes
migrations of the weekends thus a simple static rule of restarting on
Sundays may not fit.

I suggest creating a systemd timer or a cron job that fits your
preferred schedule and looks for /var/run/reboot-required and reboots
only when it is present.

Cheers,
Balint