LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


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

Rep: Reputation: 116Reputation: 116
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
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Original Poster
Rep: Reputation: 116Reputation: 116
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.
 
  


Reply

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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:30 AM.

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