The cpanel-onboot System Script

Valid for versions 122 through the latest version

Version:

122

Last modified: 2026 April 20


Overview

When the system boots, it runs the cpanel-onboot script from a systemd service. This systemd service runs all scripts in the /var/cpanel/on_boot directory. It allows a system administrator to easily manage scripts that they wish to run after the system starts.

Note:

The system uses the cpanel-onboot script as a service. Users do not run this script directly.

The on_boot directory

System administrators should save scripts that they wish to run when the system boots in the /var/cpanel/on_boot directory.

If the directory does not already exist, run the following command as the root user to create it:

mkdir -p /var/cpanel/on_boot

Additional Documentation