You can follow below steps:
- Log into WHM.
- Here you will find “Service Configuration” option, you have to click on it.
- Now click on “Service Manager” option.
- You will find “Monitor” column checkbox, you have to deselect it.
- This option will prevent automatic restart of PostgreSQL service.