Unable to disable services

geek0000

Verified User
Joined
Aug 26, 2020
Messages
13
Hello,

First time directadmin user here.

I don't need the following services:
named
exim
dovecot
da-popb4smtp

But I cannot find any way to permanently turn them off! after reboot they come back online.
I am only using the server for php/mysql.

Tried using https://help.directadmin.com/item.php?id=25
But doesn't work! cannot find this file on CENTOS 8 Edit /etc/init.d/named

Thank you.
 
Hi,

Have you tried disabling these service via systemctl command from the command line?
for example:
systemctl stop exim
and then
systemctl disable exim

I think Centos 8 no longer uses the init scripts.
 
Hi,

Have you tried disabling these service via systemctl command from the command line?
for example:
systemctl stop exim
and then
systemctl disable exim

I think Centos 8 no longer uses the init scripts.

PERFECT! This does it!
@raista Thanks a lot. I appreciate your help.
 
Also from DA the system monitor.

This didn't work for me. Even if I say stop, it would just come back online.
Since I don't need some services, I thought its better to turn them off. Will save some resources, and most importantly reduce attack vectors
 
If you disable named. DA is not able to work anymore. It needs named for resolving your domains.


I was under the impression that bind was a DNS SERVER and I didn't need it because I am using cloudflare to host DNS records.
 
You can comment out the service (#named=ON) or remove the line from /usr/local/directadmin/data/admin/services.status and stop the named service. This way Directadmin will stop monitoring the service, and it won't be automatically restarted anymore.
 
When you turn it off in Service Monitor it changes the services.status file.

But if the server is rebooted it will start again unless you do as raista said and disable the service.
 
I thought he did that already since he said that it did not work for named. So I presumed named was started via DA, not via systemctl. But he should double check it anyway.
 
Back
Top