Public bug reported:

Just a quick draft write up (untested).  Happy to test/propose a patch
if +1 to change.

REPLACE:
update-notifier-common.cron.daily

WITH:
Timer File
/usr/lib/systemd/system/update-notifier-resume-incomplete.timer
[Unit]
Description=Try to rerun any package data downloads that failed at package 
install time.

[Timer]
OnCalendar=daily
AccuracySec=24h 
Persistent=true

[Install]
WantedBy=timers.target

Service File
/usr/lib/systemd/system/update-notifier-resume-incomplete.service
[Unit]
Description=Try to rerun any package data downloads that failed at package 
install time.

[Service]
ExecStart=/usr/lib/update-notifier/package-data-downloader

Can Nice or otherwise restrict it via systemd.


REPLACE:
update-notifier-common.cron.weekly

WITH:
Timer File
/usr/lib/systemd/system/update-notifier-new-version.timer
[Unit]
Description=Check to see whether there is a new version of Ubuntu available

[Timer]
OnCalendar=weekly
AccuracySec=24h 
Persistent=true

[Install]
WantedBy=timers.target

Service File
/usr/lib/systemd/system/update-notifier-new-version.service
[Unit]
Description=Check to see whether there is a new version of Ubuntu available

[Service]
ExecStart=/usr/lib/ubuntu-release-upgrader/release-upgrade-motd

Can Nice or otherwise restrict it via systemd.

** Affects: update-notifier (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1817380

Title:
  Migrate from cron to systemd timers

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/1817380/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to