HI,

Im trying to prevent vsftpd to start at boot time and didnt find how until now... Im using Ubuntu 10.04 LTS. I have installing vfstpd via apt-get I have removed the init script from init.d directory and did the following command :

update-rc.d vsftp remove
update-rc.d vsftpd remove

but vsftpd still run at boot time...

I would like to know how to prevent it to start at boot time and how to start it at boot time in case I change my mind.

thanks you all

link|improve this question
Belongs on serverfault.com – Paul R Oct 5 '10 at 8:39
feedback

migrated from stackoverflow.com Oct 5 '10 at 12:30

This question came from our site for professional and enthusiast programmers.

6 Answers

According to some search result on ubuntu forums the best way is to

mv /etc/init/vsftpd.conf /etc/init/vsftpd.conf.off
link|improve this answer
feedback

Look at the /etc/init/ scripts. Basically, if it's started via upstart, you just have to delete or comment the "start" statement on the top of the vsftpd related file.

link|improve this answer
feedback

Vstpd demon is controlled by new service: upstart.

You can turn off it by editing /etc/init/vsfpd.conf file and simple commenting 2 lines (in my case line 7 and 8). It should be something like that:

start on (filesystem
        and net-device-up IFACE!=lo)

Or you can use these command:

sudo sed -i.old -e '/start/,+1s/^/#/' /etc/init/vsftpd.conf

It comments the line with word start and the next line. Before changes it makes copy of the file and saves it under the name: vsftpd.conf.old.

link|improve this answer
feedback

I don't know why it's like this for you but personally I use

sysv-rc-conf

which is the visual editor that let you enable or disable your rc.d easily.

link|improve this answer
thanks but I have been using this one too and i think its doing quite the same job of update-rc.d and its doenst work too. vsftpd still launch at boot time. – Fabien Oct 5 '10 at 9:15
feedback

Try looking for vsftpd references in /etc:

grep vsftpd -R /etc

It may be started from /etc/rc.local for example.

link|improve this answer
feedback

If there is not a "listen=yes" or "listen_ipv6=yes" in your /etc/vsftpd.conf , then the service will not be started.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown