Skip to content
This repository

allow launchctl to stop mysql quickly #11

Merged
merged 1 commit into from over 1 year ago

3 participants

André Arko John Barnette Will Farrington
André Arko

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/

André Arko 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
John Barnette
Owner

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

Will Farrington wfarr merged commit d528cb1 into from
Will Farrington wfarr closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Mar 23, 2013
André Arko 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
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. +3 0  templates/dev.mysql.plist.erb
3  templates/dev.mysql.plist.erb
@@ -28,6 +28,9 @@
28 28
29 29 <key>KeepAlive</key>
30 30 <true />
  31 +
  32 + <key>ExitTimeOut</key>
  33 + <integer>1</integer>
31 34
32 35 <key>UserName</key>
33 36 <string><%= scope.lookupvar "::luser" %></string>

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.