On 2011-05-26 13:36, ken yap wrote:
> It would be better for it to check vsftpd.conf and say this service
> should be started from xinetd if that’s the case. That way it doesn’t
> matter where you call the script from. That includes the case of service
> vsftpd.
The daemon does that check and prints a message - but the script eats it.
When the OP did “sudo /usr/sbin/vsftpd”, the response was:
“500 OOPS: vsftpd: not configured for standalone, must be started from
inetd”
which is very clear. Why is not that message printed when you use the
service script? That would be the bug.
The calling line in the script is:
/sbin/startproc -l /var/log/rcvsftp.log $VSFTPD_BIN
The manual for startproc says:
-l log_file
Redirect the process standard output and standard error
to the file log_file.
So the error should have been printed to /var/log/rcvsftp.log. However, I
have tried to start the service, I get the error:
Starting vsftpd startproc: exit status of parent of /usr/sbin/vsftpd: 1
the log file is created, but it is empty. Somehow the error does not print.
Indeed, if you call “vsftpd” it does print the correct message, so
startproc interferes.
I could create a bug on this, but I’m still running 11.2 in this machine,
so I can’t. Yet, at least.
–
Cheers / Saludos,
Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)