Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 02-18-2009, 04:08 AM   #1
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 115Reputation: 115
Question Remote execution of `rc.mysqld start` hangs

As seems normal for a slackware box, when execiting /etc/rc.d/rc.mysqld start locally, the script seems to hang after starting the server and exits when it gets a carriage return. I've never questioned this before, it never stopped it working.

Problem is, I'm now scripting a mysql slave backup and trying to stop and start the server remotely with ssh. In doing so, I discovered that running:

ssh root@host '/etc/rc.d/rc.mysqld start'

just hangs and won't return unless you kill it. No amount of carriage returns makes any difference.

Looking at the script, it doesn't seem there's any reason. All start does is create a pid file and then execute mysqld_safe in the background (&)..

Anyone know what to do aboot this?
Old 02-18-2009, 04:20 AM   #2
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Original Poster
Rep: Reputation: 115Reputation: 115
Bah! It's something to do with the way the output is handled and the infamous nohup warning message.

It seems if I redirect *all* output to /dev/null in rc.mysqld.start() then it works perfectly. But I was hoping to trap output so cron can e-mail me if anything is wrong.


hang, hangs, mysql, mysqld, remote, remotely, slackware, ssh

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian etch hangs on mysqld while booting bidevi Debian 11 01-08-2009 02:40 PM
remote execution chowdhurysoumyadeep Linux - Networking 3 09-19-2008 08:23 AM
Remote Execution issinho Linux - Networking 5 07-08-2005 01:11 PM
how can i start mysqld? yenonn Slackware 6 11-28-2003 09:32 PM
mysqld start linuxRules Linux - General 1 07-21-2002 03:06 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:40 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration