I hope the init script will be fixed to give some error message when
starting fails. Currently (I'm using v3.0.2) it fails without any
description of actual problem when "listen=YES" in /etc/vsftp.conf is
missing:
sudo service vsftpd start
vsftpd stop/pre-start, process 22319
That leaves user to wonder what's going on. No sign of error in any log,
no error on terminal. The executable alone will start ok in terminal,
giving idea to peek inside start script...
/etc/init/vsftpd.conf:
-------------------------
# vsftpd - FTP Daemon
#
description "vsftpd daemon"
author "Chuck Short <[email protected]>"
start on runlevel [2345] or net-device-up IFACE!=lo
stop on runlevel [!2345]
respawn
pre-start script
check_standalone_mode()
{
# Return 1 if vsftpd.conf doesn't have listen yes or
listen_ipv6=yes
CONFFILE="/etc/vsftpd.conf"
if [ -e "${CONFFILE}" ] && ! egrep -iq "^ *listen(_ipv6)? *=
*yes" "${CONFFILE}"
then
echo "${CONFFILE}: listen disabled - service will not
start"
return 1
fi
}
[ -d /var/run/vsftpd ] || install -m 755 -o root -g root -d
/var/run/vsftpd
[ -d /var/run/vsftpd/empty ] || install -m 755 -o root -g root -d
/var/run/vsftpd/empty
check_standalone_mode || stop
end script
exec /usr/sbin/vsftpd
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1563027
Title:
vsftpd 3.0.3-3ubuntu1 fails to start on installation
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vsftpd/+bug/1563027/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs