delfer / docker-alpine-ftp-server

Small and flexible docker image with vsftpd server
189 stars 130 forks source link

Fix container stop on disconnect #36

Closed delfer closed 2 years ago

delfer commented 2 years ago

Fixing https://github.com/delfer/docker-alpine-ftp-server/issues/15

Vsftpd moved to backgroud. Added https://github.com/ZentriaMC/pidproxy to monitor main vsftpd process and https://github.com/krallin/tini supervisor to reap zombies and performing signal forwarding.

Starting process list:

PID   USER     TIME  COMMAND
    1 root      0:00 /sbin/tini -- /bin/start_vsftpd.sh
    7 root      0:00 pidproxy /var/run/vsftpd/vsftpd.pid true
   30 root      0:00 vsftpd -opasv_min_port=21000 -opasv_max_port=21010 -opasv_
   34 root      0:00 ps -a

Tested: