CWP Service monitor is monitoring and restarting selected services on your server.

Service will be restared only if exit status shows error.
If the service was shutdown and it is showing the status stopped then service monitor will NOT restart it.

Example of service when it will NOT be restarted:

# service mysqld status
mysqld is stopped

Example of service error when it will be restarted:

# service mysqld status
mysqld dead but subsys locked


To add a new service on the monitoring list, you can use this command:

chkconfig SERVICE-NAME on
chkconfig mysqld on

Services are listed in the CWP.admin
LeftMenu --> Service Config -->Services Monitor

http://IP:2030/index.php?module=servicesMonitor

Service will be restarted if the exit status is 1 or 2.

To check the exit status of your service, you can use this example

# service mysqld status
mysqld dead but subsys locked
echo $?