dnf replacement for yum-cron

Jeffrey Ollie jeff at ocjtech.us
Mon Jun 16 14:11:43 UTC 2014


On Mon, Jun 16, 2014 at 7:50 AM, Neal Becker <ndbecker2 at gmail.com> wrote:
> Been using yum-cron for years with good results.
>
> If yum is being phased out, I'll want a dnf-cron replacement

Already exists:

$ rpm -ql dnf | grep systemd
/usr/lib/systemd/system/dnf-makecache.service
/usr/lib/systemd/system/dnf-makecache.timer

$ cat /usr/lib/systemd/system/dnf-makecache.service
[Unit]
Description=dnf makecache

[Service]
Type=oneshot
Nice=19
IOSchedulingClass=2
IOSchedulingPriority=7
Environment="ABRT_IGNORE_PYTHON=1"
ExecStart=/usr/bin/dnf -v makecache timer

$ cat /usr/lib/systemd/system/dnf-makecache.timer
[Unit]
Description=dnf makecache timer
ConditionKernelCommandLine=!rd.live.image

[Timer]
OnBootSec=10min
OnUnitInactiveSec=1h
Unit=dnf-makecache.service

[Install]
WantedBy=basic.target


-- 
Jeff Ollie


More information about the devel mailing list