LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-13-2013, 05:49 PM   #1
lfekigjkh
LQ Newbie
 
Registered: Jun 2013
Posts: 8

Rep: Reputation: Disabled
Redirect output to serial,but not replacing primary console if connected


Normally I prefer to research and find the solution myself through trial and error. Unfortunately I have a bit of a time crunch. New build, Centos 6.3, I need to be able to have a console connection after boot, preferably taking effect after run level 3, but not redirecting permanently to the serial port if keyboard/monitor are connected locally. I have it working ON boot, and taking over from the primary, which is kinda the opposite of what I want. PLEASE PLEASE in this one instance don't tell me to RTFM. I've googled for a couple hours and I can't afford to spend many more cycles on this but I do need to solve it.
 
Old 09-16-2013, 08:16 AM   #2
lfekigjkh
LQ Newbie
 
Registered: Jun 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Just to clarify, I would like the serial port to be available as a connection at/after RL3. I don't want it to become the primary console if a keyboard and monitor is present. From googling, I know that in older versions, the inittab would be the proper place to set this up, but we're apparently not supposed to use the inittab for things like that in newer versions.
 
Old 09-16-2013, 10:39 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,733

Rep: Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752Reputation: 1752
You can configure a serial console using upstart and you can configure multiple consoles. I have not found a way to change console devices on the fly.

http://www.cyberciti.biz/faq/centos-...erial-console/

https://www.kernel.org/doc/Documenta...al-console.txt
 
Old 09-25-2013, 01:01 PM   #4
lfekigjkh
LQ Newbie
 
Registered: Jun 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
You can configure a serial console using upstart and you can configure multiple consoles. I have not found a way to change console devices on the fly.

http://www.cyberciti.biz/faq/centos-...erial-console/

https://www.kernel.org/doc/Documenta...al-console.txt
I tried setserial and the ttyS0.conf, still couldnt get it to start. I did change grub.conf but
for some reason the system wouldn't boot properly. I'm guessing I screwed up the entry to have
both ttyS0 and /dev/console get output, so I gave up on seeing boot messages on the serial port.
I ended up creating a QND script:
# chkconfig: 1345 20 39
# description: starts ttyS0
# processname: agetty
/sbin/agetty -L -f /etc/issueserial 115200 ttyS0 vt100

Then I ran chkconfig --add start_ttyS0
Im sure this isnt the "correct" solution, but since the illustrious engineers decided to change
the way to kick off serial connections from 5 to 6, I'm just glad I have a working solution.
Thanks for the response, even if it wasn't the the method I ended up using.

~
 
  


Reply


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
Serial port working, but kernel console output to it disappears hda7 Linux - Kernel 5 05-09-2011 12:01 PM
[SOLVED] getty process is not shown using ps if connected using serial console ? Vilius Linux - Software 1 05-21-2010 04:34 AM
Redirect serial console output otix Programming 0 05-08-2010 06:08 AM
Serial Console-redirect to another PC adenev Linux - Newbie 2 04-01-2009 07:21 PM
serial console - working, then "stuck" output and can't login srfeo Linux - General 0 03-29-2007 04:45 AM


All times are GMT -5. The time now is 01:25 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration