Does cron @reboot run before systemd?

pdcribeiro asked:

A command defined as @reboot in the root crontab runs before or after systemd services?

Is it random or OS dependent?

My answer:


Cron jobs can only start when the cron daemon is running, and of course systemd starts the cron daemon like every other service.

If it is important to run a specific job before or after something else, consider using a systemd timer/service to schedule it.


View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.