From Fedora Project Wiki

Cron to Systemd Timer migration

Notes

Cron job that should be migrating should only be those that are in a package that already depends on systemd

Create packaging guidelines proposal regarding systemd time units with samples. DONE

Proposal approved by FPC https://fedorahosted.org/fpc/ticket/261 Packaing guidelines http://fedoraproject.org/wiki/Packaging:CronFiles

Create a tracker bug for requires and timer migration

Requires crontabs https://bugzilla.redhat.com/show_bug.cgi?id=947037


Should time units be bound to their corresponding service unit so they start and stop when unit is started?

Add requires to cron to packages that do not depend on systemd

Add a section about timer units to systemd wiki page

Sample systemd time unit usage


ackme.timer

[Unit]
Description=Ackme Sample Timer Unit
BindTo=ackme.service

[Timer]
Unit=ackme.service
OnCalendar=daily
ExecStart=/path/to/script

[Install]
WantedBy=multi-user.target

ackme.service


[Unit]
Description=ackme
Documentation=man:ackmed(1)

[Service]
User=ackme
ExecStart=/usr/bin/acmed --daemon



Cron to Systemd migration

Package name Bug Number Port Status Ready for Proven Packager Proven Packager Note
amavisd-new #N/A
Fail fail Nobody
No Nobody drop cron use tmpfile
apt #N/A
Fail fail Nobody
No Nobody
arm4 #N/A
Fail fail Nobody
No Nobody
atop #N/A
Fail fail Nobody
No Nobody
bcfg2 #N/A
Fail fail Nobody
No Nobody
clement #N/A
Fail fail Nobody
No Nobody
cyrus-imap #N/A
Fail fail Nobody
No Nobody
dbmail #N/A
Fail fail Nobody
No Nobody
denyhosts #N/A
Fail fail Nobody
No Nobody
dspam #N/A
Fail fail Nobody
No Nobody
exim #N/A
Fail fail Nobody
No Nobody
fetch #N/A
Fail fail Nobody
No Nobody
freeipa-server #N/A
Fail fail Nobody
No Nobody
hylafax #N/A
Fail fail Nobody
No Nobody
inn #N/A
Fail fail Nobody
No Nobody
leafnode #N/A
Fail fail Nobody
No Nobody
ltsp-server #N/A
Fail fail Nobody
No Nobody
mailman #N/A
Fail fail Nobody
No Nobody
mcelog #N/A
Fail fail Nobody
No Nobody
mdadm #N/A
Fail fail Nobody
No Nobody
mldonkey-server #N/A
Fail fail Nobody
No Nobody
newscache #N/A
Fail fail Nobody
No Nobody
nsd #N/A
Fail fail Nobody
No Nobody
opendnssec #N/A
Fail fail Nobody
No Nobody
openvas-scanner #N/A
Fail fail Nobody
No Nobody
ovirt-engine #N/A
Fail fail Nobody
No Nobody
ovirt-node #N/A
Fail fail Nobody
No Nobody
polipo #N/A
Fail fail Nobody
No Nobody
sagator-core #N/A
Fail fail Nobody
No Nobody
sipwitch #N/A
Fail fail Nobody
No Nobody
spamassassin #N/A
Fail fail Nobody
No Nobody
squidGuard #N/A
Fail fail Nobody
No Nobody
subscription-manager #N/A
Fail fail Nobody
No Nobody
sysstat #N/A
Fail fail Nobody
No Nobody
vdsm-reg #N/A
Fail fail Nobody
No Nobody
vnstat #N/A
Fail fail Nobody
No Nobody
yum-cron #N/A
Fail fail Nobody
No Nobody

Packages that should require crontabs

Package name Bug Number Port Status Ready for Proven Packager Proven Packager Note
afraid-dyndns #N/A
Fail fail Nobody
No Nobody orphan
autotrust #N/A
Fail fail Nobody
No Nobody orphan
awstats #947040
Pass pass Johannbg
yes Maintainer FIXED
backup-manager #947045
Inprogress inprogress Johannbg
Yes Nobody
cacti #947047
Inprogress inprogress Johannbg
Yes Nobody
checkdns #947058
Inprogress inprogress Johannbg
Yes Nobody
clamav-unofficial-sigs #988602
Inprogress inprogress Johannbg
Yes Nobody
clamav #988605
Inprogress inprogress Johannbg
Yes Nobody
crypto-utils #988609
Inprogress inprogress Johannbg
Yes Nobody
dmraid-events-logwatch #989020
Inprogress inprogress Johannbg
Yes Nobody
dnf #N/A
Fail fail Nobody
No Nobody Has been migrated to timer units by maintainer
drupal7 #989021
Inprogress inprogress Johannbg
Yes Nobody
dwatch #989039
Inprogress inprogress Johannbg
Yes Nobody
epylog #989023
Inprogress inprogress Johannbg
Yes Nobody
etckeeper #989024
Inprogress inprogress Johannbg
Yes Nobody
exim-greylist #989031
Inprogress inprogress Johannbg
Yes Nobody
ghc-doc-index #989032
Inprogress inprogress Johannbg
Yes Nobody
globus-gram-audit #N/A
Pass pass Nobody
No Maintainer FIXED
glpi #989033
Pass pass Johannbg
Yes Maintainer FIXED
glpi-mass-ocs-import #989034
Pass pass Johannbg
Yes Maintainer FIXED
hplip #989035
Pass pass Johannbg
Yes Maintainer FIXED Cron job dropped
indefero #989037
Inprogress inprogress Johannbg
Yes Nobody
libvirt-sandbox #N/A
Fail fail Nobody
No Nobody Logrotate workaround which needs to be fixed @ logroate
lightsquid #989072
Inprogress inprogress Johannbg
Yes Nobody
limph-hostagent #989073
Inprogress inprogress Johannbg
Yes Nobody
logcheck #989074
Inprogress inprogress Johannbg
Yes Nobody
logrotate #N/A
Fail fail Nobody
No Nobody Requires larger patchset
logwatch #989075
Inprogress inprogress Johannbg
Yes Nobody
ltsp-server #989076
Inprogress inprogress Johannbg
Yes Nobody
man-db #989077
Inprogress inprogress Johannbg
Yes Nobody
mlocate #N/A
Pass pass Johannbg
No Maintainer
moodle #989079
Inprogress inprogress Johannbg
Yes Nobody
munin #989080
Inprogress inprogress Johannbg
Yes Nobody
nordugrid-arc-gridmap-utils #989082
Inprogress inprogress Johannbg
Yes Nobody
ocsinventory-agent #989085
Inprogress inprogress Johannbg
Yes Nobody
olpc-update #N/A
Fail fail Nobody
No Nobody
openshift-origin-cartridge-cron #N/A
Fail fail Nobody
No Nobody
PackageKit-cron #N/A
Fail fail Nobody
No Nobody
pam_shield #N/A
Fail fail Nobody
No Nobody
prelink #N/A
Fail fail Nobody
No Nobody
queuegraph #N/A
Fail fail Nobody
No Nobody
rancid #N/A
Fail fail Nobody
No Nobody
rkhunter #N/A
Fail fail Nobody
No Nobody
rpm-cron #N/A
Fail fail Nobody
No Nobody
safekeep-server #N/A
Fail fail Nobody
No Nobody
slrn-pull #N/A
Fail fail Nobody
No Nobody
snapper #N/A
Fail fail Nobody
No Nobody
spacewalk-dobby #N/A
Fail fail Nobody
No Nobody
squirrelmail #N/A
Fail fail Nobody
No Nobody
system-autodeath #N/A
Fail fail Nobody
No Nobody
sysusage #N/A
Fail fail Nobody
No Nobody
tmpwatch #N/A
Fail fail Nobody
No Nobody
tripwire #N/A
Fail fail Nobody
No Nobody
unbound-libs #N/A
Fail fail Nobody
No Nobody
webacula #N/A
Fail fail Nobody
No Nobody
webalizer #N/A
Fail fail Nobody
No Nobody
WebCalendar #N/A
Fail fail Nobody
No Nobody
x509watch #N/A
Fail fail Nobody
No Nobody