When the system boots, it runs the
/usr/local/cpanel/bin/onboot_handler script. This script runs all of the scripts in the
/var/cpanel/on_boot and the
/usr/local/cpanel/libexec/on_boot directories. This allows a system administrator to easily manage scripts that they wish to run after the system starts.
System administrators should save scripts that they wish to run when the system boots in the
If the directory does not already exist, run the following command as the
root user to create it:
cPanel & WHM saves any internal or development scripts to run on boot in the
/usr/local/cpanel/libexec/on_boot directory. Do not save any scripts in this directory.
The system uses the following entry in the
root user's crontab file to run the