مكتبة الشروحات
The onboot_handler Script طباعة
Overview:
When the system boots, it runs the /usr/local/cpanel/bin/onboot_handler
script. This script runs all of the scripts that exist in the /var/cpanel/on_boot
and /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.
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
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 cron job
The system uses the following entry in the root
user’s crontab file to run the /usr/local/cpanel/bin/onboot_handler
script:
@reboot /usr/local/cpanel/bin/onboot_handler
هل كانت المقالة مفيدة ؟
مقالات مشابهة
Overview: The cPanel & WHM installation process adds important scripts to your server’s...
Overview: You can use the /usr/local/cpanel/bin/dbmaptool script to grant ownership of databases...
Overview: This script allows you to manage the task queue system. The task queue system allows...
Overview: The /usr/local/cpanel/scripts/auto-adjust-mysql-limits script updates MySQL®...
Overview: The /usr/local/cpanel/bin/autossl_check script allows you to manually check the SSL...