Operating System - Linux
1829467 Members
1527 Online
109991 Solutions
New Discussion

Re: vsftpd dead but subsys locked

 
Muhammad Shamroze
Frequent Advisor

vsftpd dead but subsys locked

I am facing problem in vsftp server. I'm working on RHEL4 server. the vsftpd service was working fine but now suddenly I found
that it is not working. Whenever I restart or stop the service I'm getting following messages.

1. Service vsftpd status

Vsftpd dead but subsys locked

2. Service vsftpd stop

Shutting Down vsftpd: [Failed]

3. Service vsftpd start

Starting vsftpd for vsftpd: [ok]

4.Service vsftpd status

Vsftpd dead but subsys locked


Kindly suggest....what can be done so that the vsftpd service work properly


Regards,

4 REPLIES 4
Alexander Chuzhoy
Honored Contributor

Re: vsftpd dead but subsys locked

By default vsftpd runs from xinetd.
Try to stop the xinetd and to restart the vsftpd service.
Steven E. Protter
Exalted Contributor

Re: vsftpd dead but subsys locked

Shalom,

Many deamons have a lock file in /var/run

This message indicates that vsftpd did not terminate normally, but did terminate.

Erase the lock file and it will restart.

vsftpd is not run with xinetd unless you specifically altered its configuration. Contrary to wu-ftpd, it has its own configuration file and independent daemon infrastructure.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ivan Ferreira
Honored Contributor

Re: vsftpd dead but subsys locked

Run:

service vsftpd stop
service vsftpd start


And just after that, check /var/log/messages. You probably have a problem in your configuration file. Error should be reported to that file.

Or run:

service vsftpd stop
vsftpd

This will start the daemon manually and any errors you will get to your terminal, like this:

500 OOPS: missing value in config file for:

You must be aware that all configuration options in the vsftpd.conf file must not start with a space, for example:

- Correct
anonymous_enable=YES

- Incorrect
anonymous_enable=YES

If you have an space in your configuration file before the config options, you will get an error.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
George Liu_4
Trusted Contributor

Re: vsftpd dead but subsys locked

just remove the following file

/var/locl/subsys/vsftpd

and then restart vsftpd