Timers do systemd agendam units .service. Vantagens: logs no journal, dependências e calendários expressivos.
# exemplo.timer
[Timer]
OnCalendar=daily
Persistent=true
[Install]
WantedBy=timers.target
sudo systemctl enable --now exemplo.timer
systemctl list-timers
Para tarefas simples em user space, cron ainda é válido. Em servidores com systemd, timers costumam integrar melhor.
DICA Compare com crontab.
Continue explorando
← hub · crontab · systemctl · logrotate
Veja também o hub de conteúdo, o glossário e os cursos gratuitos.