[Olaf van der Spek]
> I read the rationale, but in the ideal case you'd do that IO and
> sendsigs in parallel.

I do not see that as an ideal.  It would defeat the purpose of the
sync call.  The daemons killed by sendsigs should not have much IO to
push to the disk in the first place, because if they did, the safe
option would be for them to have their own stop script that make sure
the daemon is safely stopped before continuing.

> I assume sync doesn't return until all IO is done.

I assume so to.

> Can't you move that sync to for example 5 seconds after TERM has
> been send?

The purpose of the sync is to make sure all those daemons that do not
need to save state, and thus can be safely killed by sendsigs, get a
fair chance of terminating cleanly before they are forcefully killed.
Moving the sync after the TERM signal should not meet this goal.

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to