As far as I understand the
shutdown command: If I send a
shutdown -h now init will try and stop all processes gracefully, wait a certain amount of time, then send
My question is: how long will init wait, and how do I configure this length of time? I have a
mysql server that can take up to 15 minutes to stop gracefully, and I want to be sure that init doesn't try and
kill -9 it.
From reading the man page, at first glance it looks like the
-t flag is what I'm looking for, however, reading in a bit more detail this flag actually specifies the delay between sending the shutdown command and init trying to stop all processes gracefully.
OS is CentOS 6, but interested in Debian 7 as well.