SYSTEMD.CRON(7) | systemd.cron | SYSTEMD.CRON(7) |
systemd.cron - systemd cron units
cron.target, cron-hourly.timer, cron-hourly.target, cron-hourly.service, cron-daily.timer, cron-daily.target, cron-daily.service, cron-weekly.timer, cron-weekly.target, cron-weekly.service, cron-monthly.timer, cron-monthly.target, cron-monthly.service, cron-yearly.timer, cron-yearly.target, cron-yearly.service, cron-update.path, cron-update.service.
These units provide cron daemon functionality by running scripts
in cron directories.
The crontabs are monitored by cron-update.path and are automatically
translated by systemd-crontab-generator(8) .
This cron replacement only send mails on failure. The log of jobs
is saved in systemd journal. Do not use with a cron daemon or
anacron, otherwise scripts may be executed multiple times.
All services are run with Type=oneshot , that means you can't use
systemd-cron to launch long lived forking daemons.
The generator can optionally turn all crontabs in persistent timers with the PERSISTENT=true flag, while a regular cron+anacron setup won't catch-up the missed executions of crontabs on boot.
[Service]
Nice=19
IOSchedulingClass=2
IOSchedulingPriority=7
ExecStart=/usr/bin/mandb --quiet
[Install]
WantedBy=cron-hourly.target
With systemd >= 209, you can execute "systemctl list-timers" to have a overview of timers and know when they will elapse.
systemd(1), systemd.unit(5), systemd.service(5), systemd.target(5), systemd.timer(5), systemd.time(7), systemd-crontab-generator(8), crontab(5), run-parts(8)
Dwayne Bent
systemd-cron 1.15.19 |