You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Note!! Please register for a free account to access the full content and also to participate in Q&A in the community

Running Cron Script on System Reboot Sometimes Fails

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.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!