Comment 33 for bug 688541

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

So, I believe the right way to handle this is to wait a long time for any upstart job that has status of 'stop/killed'.

We can't be finding all of the "services that are slow to shutdown" one by one. Authors of upstart jobs will know how long to wait before sending kill -9. Once kill -9 has been sent, the job's state actually changes to post-stop, so sendsigs wouldn't wait any longer anyway, but we should cap it at something longer than 10 seconds. I would suggest 5 minutes.

Anyway, because of this, I don't think we should just fix this in mysql, we should fix it in sysvinit. However until its fixed in sysvinit, I'll change mysql's stop on to be 'stop on starting rc RUNLEVEL...'