qt5base-lts/tests/testserver
Ryan Chu fe29a6a6eb Fix the timing issue of vsftpd during boot (probably invalid config)
This appears to be a timing issue of vsftpd's initial script
(/etc/init.d/vsftpd). When starting the vsftpd service, the script uses
a while loop to make sure that the vsftpd process has been created with
the expected PID. The problem is that it should sleep if it can't grep
the same PID via ps command.

while [ ${n} -le 5 ]
do
    _PID="$(if [ -e ...vsftpd.pid ]; then cat ...vsftpd.pid; fi)"
    if ! ps -C vsftpd | grep -qs "${_PID}"
        then
            break
    fi
    sleep 1
    n=$(( $n + 1 ))
done

if ! ps -C vsftpd | grep -qs "${_PID}"
then
    log_warning_msg "vsftpd failed - probably invalid config."
    exit 1
fi

However, synchronization based on time is not working in general. This
change will rewrite the while loop to an infinite loop and remove the
exclamation symbol (!) from the if condition.

Upgrading the version of vsftpd is not helpful here because
vsftpd_3.0.3-11 (Ubuntu 18.10) didn't resolve it yet.

Change-Id: I07382709c33bd9bab61fcea76ab7deca5f630084
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2019-01-16 18:24:01 +00:00
..
apache2 Rework QNetworkReply tests to use docker-based test servers 2018-07-27 17:40:27 +00:00
common Enable mDNS service discovery in Docker-based test servers 2018-07-10 15:25:14 +00:00
danted Use environment variable to configure the interfaces of a Dante server 2018-10-18 13:18:29 +00:00
ftp-proxy
squid
vsftpd Fix the timing issue of vsftpd during boot (probably invalid config) 2019-01-16 18:24:01 +00:00
docker-compose-for-macOS.yml Docker Provisioning: Update the SHA-1 tag of server images 2018-12-10 22:41:20 +00:00
docker-compose.yml Docker Provisioning: Update the SHA-1 tag of server images 2018-12-10 22:41:20 +00:00