This article explains how to automatically execute a cron job  a server reboot. For instance, after a server restarts, you might wish to run a specific script file or program.

To do this, use the @reboot crontab directive in the cron job instead of a particular day or time. For example, the following cron job runs the start_application.sh script file in the user's home directory one time only after the system restarts:

@reboot ${HOME}/start_application.sh
Was this answer helpful? 0 Users Found This Useful (0 Votes) cronjob, server reboot, linux