LinuxQuestions.org
Help answer threads with 0 replies.
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 05-20-2014, 01:44 PM   #1
pettijohne
LQ Newbie
 
Registered: Mar 2014
Distribution: Slackware 14.1, LinuxMint 16
Posts: 16

Rep: Reputation: Disabled
MariaDB hangs on startup


This has been happening for a while, but now that I have maria setup to start on boot its annoying. Basically when the script is run for startup it just hangs there until you hit enter. Which is annoying since I don't normally keep a keyboard or monitor hooked up to it. I tried playing around with the script, but nothing seems to work for me. Has anyone else encountered this and if so did you find a fix?

Thanks
 
Old 05-20-2014, 05:30 PM   #2
Hangaber
Member
 
Registered: Sep 2004
Location: USA
Distribution: Slackware
Posts: 163

Rep: Reputation: 51
I thought I saw the same thing in the past, but not now. After rebooting several times, using the default scripts in 14.1 64bit, I see something like the following;
Code:
140520 14:53:18 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
... and then a couple of lines from my rc.local related entries, and then I'm presented with the login prompt.

However, I can semi-duplicate what you mean by manually stopping then restarting mysqld.
Code:
/etc/rc.d/rc.mysqld stop
/etc/rc.d/rc.mysqld start
At this point the cursor is at a blank new line, but not a "prompt". If I hit enter, I'm back at the prompt again.

How did you setup maria to start on boot? I simply did a chmod u+x rc.mysqld (or whatever).

I suspect the output you see is just the delayed "log_notice" from mysqld_safe running in it's background process / constant loop. I don't think any other startup process or script is "pending" you hitting the enter key.
In the past on a headless server, I think I had something like this at the end of my rc.local
Code:
sleep 6
clear
banner -w 26 blah
Although obviously cosmetic, this would clear the startup log output, display the little banner, and present a login prompt again.
 
Old 05-20-2014, 05:53 PM   #3
pettijohne
LQ Newbie
 
Registered: Mar 2014
Distribution: Slackware 14.1, LinuxMint 16
Posts: 16

Original Poster
Rep: Reputation: Disabled
I just added sleep 6 and clear to rc.local and that does it.
 
  


Reply



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
startup hangs bob1 Linux - Newbie 3 01-04-2006 01:39 AM
K3b Hangs on Startup Nick1787 Linux - Software 2 12-29-2004 09:07 PM
9.1 Hangs At Startup Monica976 SUSE / openSUSE 8 12-02-2004 07:23 AM
eth0 hangs on startup reichhorn Linux - Networking 1 06-19-2003 03:25 AM
Redhat Hangs on Startup RADIAN03 Linux - Software 2 06-07-2003 06:13 PM

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

All times are GMT -5. The time now is 12:29 PM.

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