On Wed, Nov 16, 2005, Ralf S. Engelschall wrote: >On Tue, Nov 15, 2005, Bill Campbell wrote: ... >> There is a two second sleep in the %restart section of the rc.amavisd run >> control script. I think it might be a good idea to bump this >> significantly, say to 20 seconds or so. > >Hmmm... I tried it multiple times on rm0.openpkg.net and amavis seems >to stop fine and easily within 2 seconds. Ok, it's no problem to >increase the time a little bit, but 20 seconds are rather long. Ok, for >restarting it could be ok to have longer delays, but in general one has >to be very carefully to not stretch the delays in rc scripts too much, >because I know of servers with over a dozend OpenPKG instances and lots >of daemons in each instance and where cleanly shutting down the machine >is not possible without explicitly increasing the shutdown timeout in >init(8) ;-) I would recommend that you retry with 4 seconds or perhaps 8 >seconds and see what happens. I guess this should be enough.
I don't see this problem frequently which is why I never dug into it before. The thing that led me to this conclusion was one of our customers who took the time to examine his logs and figure it out. Perhaps it would be best to add a variable to the configuration section that could be overridden in the %{l_prefix}/etc/rc.conf file. >> This would explain several occassions where our main mailing list server >> here stopped working with a dead amavisd process. That machine isn't >> particularly fast, and the load average can get pretty high when delivering >> large Mailman lists. > >Ok, a slow machine and a high load certainly can cause the 2 second >delay to be too less. Ok, I've now comitted a 4 second delay and if your >tests show that we really need even more we can easily bump it up again, >of course. I just want to avoid increasing the delays too much without a >definitive need. > >> I think this also is applicable to apache as I've seen many instances where >> it takes longer than the 2 second sleep time in the apache %stop section >> before all the apache processes are complete. > >Yes, that's correct. I've now added an extra delay of 4 seconds to the >"restart" part of rc.apache. This way there is an effective delay of 6 >instead of 2 seconds now on Apache restarts and still just the 2 seconds >delay on plain stops. That makes sense. Again, I think that putting the restart delay into the configuration section where it can be overridden in the rc.conf file may well be the best solution. Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Systems, Inc. UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ ``A Democracy cannot exist as a permanent form of government. It can only exist until the voters discover they can vote themselves largesse out of the public treasury. From the moment on the majority always votes for the candidate promising the most benefits from the public treasury with the result that Democracy always collapses over a loose fiscal policy, always to be followed by a Dictatorship.'' Professor Alexander Fraser Tytler. 1801 ______________________________________________________________________ The OpenPKG Project www.openpkg.org Developer Communication List openpkg-dev@openpkg.org