On Jan 17, 2008 10:47 AM, Petter Reinholdtsen <[EMAIL PROTECTED]> wrote: > [Olaf van der Spek] > > I've also noticed you do a sync before sendsigs. Is this a good > > idea? It might cause some unnecessary delays. Wouldn't it be better > > to increase the delay between TERM and KILL instead? > > I thought this comment in the script explained the rationale: > > # Flush the kernel I/O buffer before we start to kill > # processes, to make sure the IO of already stopped services to > # not slow down the remaining processes to a point where they > # are accidentily killed with SIGKILL because they did not > # manage to shut down in time. > sync > > How can the description be improved to make it clearer?
I read the rationale, but in the ideal case you'd do that IO and sendsigs in parallel. I assume sync doesn't return until all IO is done. Can't you move that sync to for example 5 seconds after TERM has been send? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]