Migrate from cron to systemd timers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-notifier (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Just a quick draft write up (untested). Happy to test/propose a patch if +1 to change.
REPLACE:
update-
WITH:
Timer File
/usr/lib/
[Unit]
Description=Try to rerun any package data downloads that failed at package install time.
[Timer]
OnCalendar=daily
AccuracySec=24h
Persistent=true
[Install]
WantedBy=
Service File
/usr/lib/
[Unit]
Description=Try to rerun any package data downloads that failed at package install time.
[Service]
ExecStart=
Can Nice or otherwise restrict it via systemd.
REPLACE:
update-
WITH:
Timer File
/usr/lib/
[Unit]
Description=Check to see whether there is a new version of Ubuntu available
[Timer]
OnCalendar=weekly
AccuracySec=24h
Persistent=true
[Install]
WantedBy=
Service File
/usr/lib/
[Unit]
Description=Check to see whether there is a new version of Ubuntu available
[Service]
ExecStart=
Can Nice or otherwise restrict it via systemd.
Changed in update-notifier (Ubuntu): | |
status: | New → Invalid |
What is the motivation for such a change? Is it strictly because you want to be able to nice these jobs?
We aren't at a point where generally speaking we are migrating cronjobs to timer units.