After a system update, cPanel & WHM runs the
/usr/local/cpanel/scripts/find_outdated_services script. This script checks all services to determine whether they require a restart. An outdated service is any service that depends on a library that is no longer present on the system.
This script does not restart the following services:
Run the script
To run this script on the command line, use the following format:
Use the following options with this script:
|The script locates and restarts any outdated services.|
The script locates any outdated services but will not restart them.
By default, the script uses this option when it runs as part of the
/usr/local/cpanel/scripts/find_outdated_services script uses this file to exclude certain services from the script's check.
/usr/local/cpanel/scripts/find_outdated_services script does not apply this exclusion list to the
To exclude a service from this script, add it to the
/etc/cpanel/local/ignore_outdated_services file. This file uses the following format:
Use the pound character (
#) at the beginning of a line to mark it as a comment.
Enter only one service per line.
The service name must match its name as it appears in the process table. Use the
pscommand with the necessary flags to list processes (for example,
- Use Unix line endings to separate the entries.
- The system skips blank lines.
For example, this file's contents would resemble the following:
We want to block the
cloud-final services from restart checks. Create the
/etc/cpanel/local/ignore_outdated_services file and add the
cloud-final services with the following command: