Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

allow launchctl to stop mysql quickly #11

Merged
merged 1 commit into from Mar 27, 2013

Conversation

Projects
None yet
3 participants
Contributor

indirect commented Mar 23, 2013

When launchctl tries to stop a process, it sends INT, waits 20
seconds, and then sends KILL. mysqld happily ignores INT, and just
keeps running until it gets a KILL. That means this patch removes 20
seconds from the shutdown/restart of every machine running mysql via
boxen, which seems like a pretty nice improvement.

I wrote up how I discovered this a while ago:
http://andre.arko.net/2011/08/07/fixing-mac-shutdown-delays/

@indirect indirect help launchctl stop mysql quickly
When launchctl tries to stop a process, it sends INT, waits 20
seconds, and then sends KILL. mysqld happily ignores INT, and just
keeps running until it gets a KILL. That means this patch removes 20
seconds from the shutdown/restart of every machine running mysql via
boxen, which seems like a pretty nice improvement.

I wrote up how I discovered this a while ago:
http://andre.arko.net/2011/08/07/fixing-mac-shutdown-delays/
f662126
Contributor

jbarnette commented Mar 25, 2013

This has bothered me for a long time. ❤️

@wfarr wfarr added a commit that referenced this pull request Mar 27, 2013

@wfarr wfarr Merge pull request #11 from indirect/master
Allow launchctl to stop mysql quickly
d528cb1

@wfarr wfarr merged commit d528cb1 into boxen:master Mar 27, 2013

1 check failed

default The Travis build failed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment