Cron @reboot: run a job at startup
@rebootOnce, each time the cron daemon starts (normally at boot).
@reboot runs the command once when the cron daemon starts, which normally means at boot. It is supported by Vixie cron and cronie (most Linux distributions), not by Kubernetes, GitHub Actions or cloud schedulers.
Try it and tweak it
Change any field below and the preview updates. Set the time zone to match your server.
Once, each time the cron daemon starts (normally at boot).
Next 10 runs
Calculating in your browser…
Times are computed in your browser for the selected zone and are informational. The server that runs the job uses its own zone (often UTC) and cron flavour, so verify there.
Same schedule in other dialects
* * * * *0 * * * * ?0 * * * * ?cron(* * * * ? *)Add it to your crontab
- Open your crontab with
crontab -e. - Add one line:
@reboot /full/path/to/command >> /var/log/job.log 2>&1 - Save and exit. Cron reloads automatically; confirm with
crontab -l.
Need the output silenced, a lock against overlapping runs or a system crontab user column? The generator’s full crontab line builder writes it for you. Already have a crontab? Paste it into the crontab parser to check every job.
Variations
@daily | If you need a recurring run as well as the boot run, add a second line such as @daily |
In other schedulers
| crontab line | @reboot /path/to/command |