Re: Shutdown script (derived from "Simple startup daemon's on boot question?")

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Tomas <s.tomas@...>
Cc: OpenBSD misc list <misc@...>
Date: Wednesday, September 19, 2007 - 8:21 am

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).

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Shutdown script (derived from "Simple startup daemon's o..., Artur Litwinowicz, (Wed Sep 19, 8:24 am)
Re: Shutdown script (derived from "Simple startup daemon's o..., Stuart Henderson, (Wed Sep 19, 8:21 am)
Re: Shutdown script (derived from "Simple startup daemon's o..., Stuart Henderson, (Wed Sep 19, 10:43 am)
Re: Shutdown script (derived from "Simple startup daemon's o..., Przemyslaw Nowaczyk, (Wed Sep 19, 8:36 am)