Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

allow launchctl to stop mysql quickly #11

Merged
merged 1 commit into from

3 participants

@indirect

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
@jbarnette
Owner

This has bothered me for a long time. :heart:

@wfarr wfarr merged commit d528cb1 into boxen:master

1 check failed

Details default The Travis build failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 23, 2013
  1. @indirect

    help launchctl stop mysql quickly

    indirect authored
    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/
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 0 deletions.
  1. +3 −0  templates/dev.mysql.plist.erb
View
3  templates/dev.mysql.plist.erb
@@ -28,6 +28,9 @@
<key>KeepAlive</key>
<true />
+
+ <key>ExitTimeOut</key>
+ <integer>1</integer>
<key>UserName</key>
<string><%= scope.lookupvar "::luser" %></string>
Something went wrong with that request. Please try again.