Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 223225 - net-ftp/vsftpd-2.0.6: doesn't stop when clients are downloading
Summary: net-ftp/vsftpd-2.0.6: doesn't stop when clients are downloading
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Jeremy Olexa (darkside) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-22 16:02 UTC by Vaclav Adamik
Modified: 2008-06-02 04:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
init script patch (vsftpd_init_script.patch,305 bytes, patch)
2008-05-22 16:07 UTC, Vaclav Adamik
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vaclav Adamik 2008-05-22 16:02:02 UTC
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
Comment 1 Vaclav Adamik 2008-05-22 16:07:22 UTC
Created attachment 153953 [details, diff]
init script patch
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-05-30 05:02:04 UTC
Looks reasonable to me, let me test this one and see where it leads me.
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-06-02 04:20:49 UTC
Committed, thanks.