-
Migrating from cron to systemd timers
A systemd timer is a pair of files: a .timer that says when to fire and a .service that says what to run. OnCalendar takes calendar expressions like cron, Persistent=true recovers a missed run when the machine was off, and the log goes to the journal. Migration is replacing the crontab line with these two files.
-
How to turn your own script into a systemd service
A systemd service is a .service file with [Unit], [Service] and [Install]. ExecStart runs the script under the configured user and directory, and Restart brings the process back when it dies. User, WorkingDirectory and Restart change the behavior; MemoryMax caps memory.
You reached the end. Every post is here.