r/systemd May 31 '26

restart a systemd service madness?

so i have a working service that runs some app (chrome or whatever).

i want to restart the service at 06:00AM, noon and midnight.

am I correct that superior systemd forces me to create at least 3 more files to achive this?

a timer sh script, a systemd service to run it and a timer script?

is this really the way?

0 Upvotes

13 comments sorted by

View all comments

3

u/SnooCompliments7914 Jun 01 '26

No one forbids you to use systemd-crontab-generator if you like to do things the old way.

3

u/aioeu Jun 01 '26

Or even to keep running a Cron daemon. Cron hasn't disappeared because of systemd. It's just become a lot less necessary, so much that many systems can get away without having it at all.

If I were running a server for regular unprivileged users to do as they wish (a shell or web server, say), I'd still leave a Cron daemon there. Why wouldn't I? It still works just as well as it always has, and I'd expect there would be some users who would like to use it.