Running Cron Script on System Reboot Sometimes Fails
in Linux
Applies To:
Oracle Cloud Infrastructure - Version N/A to N/A [Release 1.0]
Linux OS - Version Oracle Linux 5.0 to Oracle Linux 8.0 [Release OL5 to OL8]
Linux x86-64 on Oracle Public Cloud
Linux x86-64
Symptoms:
A script or application is started from a crontab on system reboot.
Example crontab entry:
@reboot sh /home/user/start_application.sh
The script execution is correctly logged in cron, but the application sometimes does not start or the script sometimes does not perform its full operation.
Changes:
N/A
Cause:
The crontab entry is executed as soon as the cron service is started during the system boot, as specified by the @reboot keyword.
Tagged:
0