Description of problem: no documentation on how to enable serial console in the new init system. My reading of /etc/event.d/serial is that it should work after fedora.serial-console-available event is emitted, but I coudn't find anything whatsoever in manpages and /usr/share/doc on how emit that. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
You don't. fedora.serial-console-available is emitted when a serial device is plugged in. There's no manual intervention involved.
Well then it's broken because I have a bunch of servers whose serial ports are plugged into a lantronix SLC terminal server, and I don't see the console on Fedora 9. All I see is grub boot menu. On all Fedora 8 and earlier machines serial console works just fine.
Furthermore, initctl emit --no-wait fedora.serial-console-available ttyS0 9600 starts it up just fine. So I repeat, how do I tell upstart that serial console is plugged in, and has been since before machine was even powered on? (I can of course put the above line in rc.local and chattr +i it to make sure it doesn't get overwritten, but I'd rather not)
See /etc/udev/rules.d/10-console.rules. I'm assuming running (post-boot) '/lib/udev/console_check console' does not start it?
I hate computers. I couldn't figure out what to emit to make serial console unavailable, so I rebooted the machine. Now I get all the bootup messages and login prompt. Go figure. I have more servers to set up, I'll see if that's consistent or a one-off glitch and post an update (hopefully later today). BTW, what's "ttySG*" referenced in /etc/udev/rules.d/10-console.rules?
Sort-of-serial-but-not-exactly console on SGI Altix boxes.
(In reply to comment #6) > Sort-of-serial-but-not-exactly console on SGI Altix boxes. Ah. Thanks. OK, I fired up another machine: identical hardware, os may be one yum update off -- the console is there from the start. So I guess we can write it off as weird one-off thing.
OK, will do. The automatic stuff should trigger whenever the old automatic code (from kudzu) did before. If you need to configure additional serial gettys that are always on (such as for ones that aren't actually the 'console' device), you can copy /etc/event.d/tty* as a starting point - it should be fairly obvious from there.
More failures: when I telnet to console, about 1 in 6 times there's no login prompt, even though it worked the last time. A look at ps shows agetty isn't running, emitting fedora.serial-console-available fixes it. It seems every once in a while agetty is not respawned after logoff. Unfortunately, it's not consistently reproducible -- all I can tell you it's happening regularly on different machines. All of the machines are x86_64 w/ DB9 serial port hooked to Lantronix slc32 console server.