Skip to content
onsuggest
Log in
Article en

Cronjob vs systemd timers - how to create a systemd timer

Source: ryansouthgate.com ·

IntroI’ve been using cronjobs for a long time. More recently I’ve been testing systemd-timers as they allow dependency management, so I don’t have to check (in the script I’m running) to see if certain services are up/running before my scripts can do their work. In this post I’m going to demonstrate how to create a simple systemd timer service which runs a script on a schedule A quick comparison with CronI’m all for learning to use new tools.

Keyboard shortcuts

Previous discovery
←P
Next discovery
→N
Like
L
Not for me
X
Save
S
Show this help
?
Close
Esc

Shortcuts work on the discovery page.