@reboot Once at every daemon/system start special The @reboot macro is a shorthand recognized by most modern cron implementations (Vixie cron, cronie, BusyBox crond and the robfig/cron library used by Kubernetes). Macros exist for readability: '@daily' communicates intent more clearly than '0 0 * * *' at a glance, and they are immune to off-by-one mistakes when colleagues edit the schedule. Support is not universal, though — older or embedded cron daemons may reject macros outright, and the Java Quartz and AWS EventBridge ecosystems have no macro syntax at all, so portable infrastructure-as-code usually expands them to plain fields. Because it is tied to daemon startup rather than the clock, it has no place in Kubernetes CronJobs or cloud schedulers, and a machine that never reboots never triggers it. Before adopting a macro in production, check your daemon's documentation: cronie and Vixie cron have supported these aliases for decades, but minimal implementations such as BusyBox crond historically accepted only a subset, and a rejected macro line can silently disable the whole crontab entry rather than just the one job. When you target multiple platforms, keep the macro in developer-facing crontabs and use the expanded form in generated configs. The table below shows the equivalent expression, the field breakdown, the next five computed run times where a clock schedule exists, and the exact Quartz, Spring, Kubernetes and EventBridge renderings.
Field-by-field breakdown
| Field | Value | Meaning |
|---|---|---|
| macro | @reboot | runs once whenever the cron daemon or machine starts; no time fields |
Next 5 run times (UTC)
Computed at build time; cross-check against your server's time zone before deploying.
When to use this schedule
- Developer-facing crontabs where readable intent ('@daily') matters more than raw field syntax.
- Boot-time initialization (@reboot): warming caches, mounting volumes, starting supervision trees.
- Infrastructure-as-code that expands macros to plain fields for platforms without macro support.
- Quick prototypes and documentation examples where the canonical shorthand is the clearest form.
Equivalent syntax
The same schedule expressed for popular schedulers and platforms:
@reboot /usr/local/bin/job.sh # Once at every daemon/system start Not supported on this platform. Quartz (Java): 6-7 fields, leading seconds, '?' when day-of-week is set Not supported on this platform. Spring @Scheduled: 6 fields, leading seconds, day names accepted Not supported on this platform. Kubernetes CronJob schedule field: standard 5-field syntax Not supported on this platform. AWS EventBridge: 6 fields incl. year, '?' required in one day field Caveats & gotchas
- Cron evaluates schedules in the server's local time zone; set CRON_TZ (cronie) or TZ (containers) explicitly on shared or distributed infrastructure.
- @reboot fires on cron daemon start, not only on machine boot — restarting the cron service also triggers it, and Kubernetes/cloud schedulers do not support it at all.
- When both day-of-month and day-of-week are restricted, standard cron ORs them; keep one of the two as '*' unless you want that behavior.
Verify your schedule
After installing the schedule, verify it end to end instead of trusting the crontab line. Run 'crontab -l' to confirm the entry survived editing, then execute the command manually with the same user and environment to catch PATH and permission problems — cron runs with a minimal environment, so absolute paths and explicit SHELL/PATH declarations prevent the classic 'works in my terminal, fails in cron' bug. Watch the daemon log ('grep CRON /var/log/syslog' on Debian/Ubuntu, 'journalctl -u cron' or '-u crond' on systemd hosts) to confirm the trigger fires at the expected times, and redirect the job's own output to a log file with 2>&1 so failures are not swallowed by mail. Finally, cross-check the next run times listed on this page against your server's time zone before declaring the schedule correct. For @reboot specifically, restart the cron service in a staging environment and confirm the job fires once — and only once — per daemon start.
Frequently asked questions
What does @reboot mean in crontab?
It runs the job once every time the cron daemon starts — typically at boot, but also when the cron service is restarted.
Does Kubernetes support @reboot?
No. Kubernetes CronJob uses robfig/cron, which has no reboot concept; use an init container or a DaemonSet for boot-time work.
What is the Quartz equivalent of @reboot?
Quartz has no reboot trigger; run startup work in application bootstrap code instead.
Try the Cron Parser
Decode cron schedules and preview the next run times.