Bug #2186 restarting mysql.server make ssh can't logout

Submitted: 22 Dec 2003 7:52 Modified: 30 Jan 2004 10:20
Reporter: xuefer tinys Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:4.0.17 OS:Linux (linux)
Assigned to: Lenz Grimmer CPU Architecture:Any

[22 Dec 2003 7:52] xuefer tinys
Description:
build from source
restarting mysql.server always make ssh can't logout remote to return to local shell
i have to kill ssh

both crond (wrote a script to run mysql if it's not started)
and ssh have same problem
but telnet is ok

How to repeat:
ssh to remote host
shell> mysql.server restart
shell> exit

screen is cleared, but is waiting there, can't return to local shell

Suggested fix:
seems mysql don't detach from tty
[23 Dec 2003 7:25] Dean Ellis
The OpenSSH FAQ covers this:

http://openssh.org/faq.html#3.10

Modifying the init script per their recommendations works, but this has the possibly undesirable effect of discarding output from the script.

I am verifying it in the event we want to modify our init script along similar lines, though.
[30 Dec 2003 12:30] Brian Aker
Personally I have always found this sort of behavior to be annoying.
[30 Jan 2004 10:20] Michael Widenius
Can't repeat this with the current MYSQL 4.0 tree
(Note that mysqld_safe will hang if you don't use > /dev/null 2>&1 &, but that is expected)

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.