On 2007/09/19 14:48, Tomas wrote:
For most things, there's no need to worry at all.
From http://dev.mysql.com/doc/refman/5.0/en/server-shutdown.html,
mysql does a controlled shutdown when it receives SIGTERM.
Examining the code of halt(8) (in src/sbin/reboot), at normal shutdown
SIGTERM is sent to running processes, then a delay of 2 seconds before
a sync(2), then a delay of 3 seconds followed by SIGKILL to anything
still running.
So the question is, whether mysql has enough time to shut down
before it's killed. If you think it doesn't, you might like to add
something like 'pkill mysqld; sleep 10' to rc.shutdown. (No need
for some 'mysqladmin shutdown' which would mean listing a plain-
text password in the file).
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Linus Torvalds | Re: init's children list is long and slows reaping children. |
| Kohei KaiGai | [PATCH 0/3] exporting capability name/code pairs (final#2) |
git: | |
| Gerrit Renker | [PATCH 33/37] dccp: Initialisation framework for feature negotiation |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Arjan van de Ven | Re: [GIT]: Networking |
| Mark Ryden | Re: Linux Wireless Mini-Summit -- Ottawa -- July 22, 2008 |
