Configure Cpanel Server service using whmapi1

To disable monitoring of MySQL service, run

whmapi1 configureservice service=mysql enabled=1 monitored=0

This wil prevent MySQL service get auto started.

To enable Monitoring for MySQL service, run

whmapi1 configureservice service=mysql enabled=1 monitored=1

If you want to disable a service, change enabled=1 to enabled=0

See whmapi1

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *