When a user is just downloading a file and vsftpd should be stopped via the initscript it effectively doesn't stop. This is because vsftpd spawns a process for a session which rund under a different pid that the one that gets killed vith start-stop-daemon. To solve this problem i suggest changing the relevant line in /etc/init.d/vsftpd - start-stop-daemon --stop --exec /usr/sbin/vsftpd --pidfile "${VSFTPD_PID}" + start-stop-daemon --stop --exec /usr/sbin/vsftpd Reproducible: Always Steps to Reproduce: 1.Install vsftpd 2.Configure and run it 3.open a connection and start downloading a file 4.while downloading do /etc/init.d/vsftpd stop Actual Results: vsftpd keeps running Expected Results: vsftpd should be stopped
Created attachment 153953 [details, diff] init script patch
Looks reasonable to me, let me test this one and see where it leads me.
Committed, thanks.