Page 1 of 1

Removing Some Services

Posted: Thu Oct 17, 2013 2:58 pm
by Graham
I'd like to be able to stop/disable the following services in Vesta:

bind9
exim
dovecot
vsftpd

Does anyone know if it's possible to do this from the control panel or do I need to change config files somewhere.

Thanks

Re: Removing Some Services

Posted: Thu Oct 17, 2013 10:32 pm
by skid
You can stop them using "services" page which can be accessed from top menu.

If you want to completely disable them use update-rc.d command

Code: Select all

update-rc.d -f %service_name% remove

Re: Removing Some Services

Posted: Fri Oct 18, 2013 6:12 am
by Graham
Thanks skid.

I hadn't realised it would be that simple :)

I'd already shutdown bind9 and exim4 from the services page, dovecot/vsftpd just refuse to stop though. I'll see if I can work out why.

Re: Removing Some Services

Posted: Mon Oct 21, 2013 6:39 pm
by Graham
Graham wrote:Thanks skid.

I hadn't realised it would be that simple :)

I'd already shutdown bind9 and exim4 from the services page, dovecot/vsftpd just refuse to stop though. I'll see if I can work out why.
Hi Skid,

nothing I do appears to stop dovecot from running. I even tried disabling as per your earlier post and restarting the server:

Code: Select all

update-rc.d -f dovecot remove

Re: Removing Some Services

Posted: Mon Oct 21, 2013 7:50 pm
by skid
Sorry, I forgot about upstart. Dovecot's init script has been converted to upstart job.
You can disable it like this

Code: Select all

echo 'manual' > /etc/init/dovecot.override 
To get full list of upstart jobs run

Code: Select all

initctl list
So on Ubuntu some services like apache2, nginx, exim are using sysv init scripts to startup, but vast majority of them has been converted to upstart jobs.