← All text tools

Crontab to systemd Timer Converter

Turn a cron schedule or a whole crontab line into a systemd OnCalendar timer and a matching service unit, with install and check commands.

  • Free
  • No sign-up
  • Works on any device

About Crontab to systemd Timer Converter

Replace a crontab entry with a systemd timer. Paste the five field schedule, or the full line with its command, and get the OnCalendar expression, a .timer file and a matching .service file, plus the commands to install them and check the next run with systemd-analyze calendar. A step such as */15 becomes 00/15, a range such as 1-5 becomes Mon..Fri, and a job that sets both a day of month and a weekday gets two OnCalendar lines to keep cron's either-or meaning. Options cover Persistent=true for catching up after downtime, a random delay and the user to run as.

How to use Crontab to systemd Timer Converter

  1. Paste the cron schedule, or the whole crontab line including the command.
  2. Name the unit, confirm the command, and choose Persistent, a random delay or a user if you need them.
  3. Save the two files in /etc/systemd/system, run the install commands and verify the schedule.

Why use this tool?

Also known as

Frequently asked questions

Why does the service need the full path of the program?

Cron runs commands through a shell with a PATH, but systemd does not search for programs. Write /usr/bin/python3 rather than python3, or the unit will fail to start.

What does Persistent=true do?

If the machine was off when a run was due, the timer runs the job once at the next boot. Cron skips missed runs, so this is one reason people prefer timers.

What happens to a command with pipes or percent signs?

It is wrapped in /bin/sh -c so the shell handles the pipes, and percent signs and dollar signs are doubled because systemd treats them as special characters.

Is Crontab to systemd Timer Converter free?

Yes. Crontab to systemd Timer Converter on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Can I put Crontab to systemd Timer Converter on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.

Related tools