Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28345 - proftpd init script should wait for shutdown if called for restarting
Summary: proftpd init script should wait for shutdown if called for restarting
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Stewart (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-10 04:18 UTC by Patrick Kursawe (RETIRED)
Modified: 2004-01-23 23:31 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Kursawe (RETIRED) gentoo-dev 2003-09-10 04:18:07 UTC
with proftpd-1.2.9_rc1, /etc/init.d/proftpd restart sometimes fails starting it
again because the old proftpd didn't yet shutdown. Adding a -R 20 or something
to the start-stop-daemon line should do fine for most users.
Comment 1 Stewart (RETIRED) gentoo-dev 2003-11-05 19:14:15 UTC
Can you provide a set of circumstances that cause this problem? If/when I
can reproduce it, I'll absolutely add an appropriate delay to the script.
Comment 2 Patrick Kursawe (RETIRED) gentoo-dev 2003-11-05 22:54:09 UTC
Just tried and failed... background: I was restarting proftpd from a cron
job every night (for log rotation). Sometimes it worked, sometimes it failed.
It seems there are circumstances where the daemon does not exit fast enough,
but I am unable to give better data for testing. Sorry.
One possible scenario: The daemon is partially swapped out, and it takes
some time to bring the pages in which are needed for signal handling when
it's killed.
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2004-01-12 13:29:28 UTC
not only proftpd does this
this is a really heavy issue for producing servers, since logfile rotation is really required
Comment 4 Nick Hadaway 2004-01-23 20:45:23 UTC
Hey... I noticed you just marked 1.2.9 stable for x86
Comment 5 Nick Hadaway 2004-01-23 20:48:40 UTC
adding --retry 20 to the start-stop-daemon line is a very wise idea.
Comment 6 Stewart (RETIRED) gentoo-dev 2004-01-23 23:31:42 UTC
Added in CVS.