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

Advertisement

whmapi1 configureservice service=mysql enabled=1 monitored=1

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

See whmapi1

Add a comment

Leave a Reply

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

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Advertisement