Hello Karsten

On 2005-12-07 Karsten Sperling wrote:
> The script runs mysqladmin shutdown, which returns 0. So it skips the
> part where it tries to kill via a signal (this part does contain a
> delay loop), and then checks without a delay if mysqld is stopped and
> complains otherwise (line 121 in the script).
> 
> mysqladmin shutdown apparently returns immediately without waiting for
> mysqld to stop. I don't know if this is a change in a recent version
> or somehow unexpected behaviour for some other reason.

At least in the current version 5.0.18, mysqladmin waits up to one hour
for the pid file to be removed by the mysqld process to make sure that
it has really shutdown correctly.

In case you still have the source code for you version check for the occurance
of wait_pidfile below "case ADMIN_SHUTDOWN" in client/mysqladmin.cc.
The pid file is really only removed when the server closed all connections,
see sql/mysqld.cc in function kill_server() and unireg_end().

So maybe this was different back then, now I would close this
bug report.

bye,

-christian-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to