On Thu, 28 Jul 2011, Robert Nagy wrote: > On (2011-07-28 11:17), Mark Kettenis wrote: > > > Date: Thu, 28 Jul 2011 10:16:00 +0200 > > > From: David Coppa <dco...@gmail.com> > > > > > > On Thu, 28 Jul 2011, Robert Nagy wrote: > > > > > > > It seems that SIGTERM is not enough for mountd, according to the code > > > > SIGTERM only sends a RPCMNT_UMNTALL broadcast to the clients. > > > > So I think what we should do in this case is to first send a SIGTERM to > > > > mountd, > > > > and then SIGKILL it in rc_stop(). > > > > > > Something like this? the sleep is just paranoia, don't know if it's > > > useful... > > > > Well, that sleep makes some sense at least; you want to give the > > daemon some time to clean up. The question is whether a single second > > is enough for that... > > Well mountd actually dies about 1.5-2 minutes after sending it a SIGTERM...
It died one time with: "Cannot register service: RPC: Timed out" (this message is from '/sbin/mountd -d') But it's probably unrelated to SIGTERM: now it's up since around fifteen minutes and I've already sent it a dozen of kills...