Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#754762: message "vsftpd failed - probably invalid config." received in error during boot

783 views
Skip to first unread message

Stephen Powell

unread,
Jul 13, 2014, 9:30:01 PM7/13/14
to
Package: vsftpd
Version: 3.0.2-14
Severity: minor

message "vsftpd failed - probably invalid config." is received during boot.
Yet the server started normally. This message is issued by /etc/init.d/vsftpd.
This message is not issued on every boot, only occasionally.

This appears to be a timing problem. The server is started asynchronously
from this script. The script then immediately looks for the PID file; and if
it doesn't find it issues the above error message. But the server may not yet
have had time to create the PID file.

Adding "sleep 1" between

start-stop-daemon --start --background -m --oknodo --pidfile /var/run/vsftpd/vsftpd.pid --exec ${DAEMON}

and

_PID="$(if [ -e /var/run/vsftpd/vsftpd.pid ]; then cat /var/run/vsftpd/vsftpd.pid; fi)"

seems to fix the problem for me.

--
.''`. Stephen Powell
: :' :
`. `'`
`-


--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
0 new messages