How to Disable auto restart of Exim on cPanel servers

In this article we assume that you are using cPanel on your server/machine and want to disable exim service for long time. Mostly it happens that we stop the service and get shocked when we see it back up and running after several minutes.

So in this article we will show you how to disable the Exim service for long time.

Basically it happens due to a cPanel utility chkservd which monitor all applications and in case find issue with any of those services it will automatically restart them.

There are two steps we have to perform.

Stop the Exim service:

/etc/init.d/exim stop
Service exim stop

Create an empty file called “disableexim” under “/etc”

touch /etc/disableexim

Now if you try to restart the Exim service, you will get the following error: /etc/init.d/exim statusexim dead but subsys locked.This way it will remain stop and “chkservd” can’t start it

Once you finish your work just remove that “disableexim” file.

rm -rf /etc/disableexim