[Bug 1817380] Re: Migrate from cron to systemd timers
Bryan Quigley
1817380 at bugs.launchpad.net
Fri May 12 15:42:10 UTC 2023
** Changed in: update-notifier (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-notifier in Ubuntu.
https://bugs.launchpad.net/bugs/1817380
Title:
Migrate from cron to systemd timers
Status in update-notifier package in Ubuntu:
Invalid
Bug description:
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/1817380/+subscriptions
More information about the foundations-bugs
mailing list