On Mon, Jul 25, 2022 at 9:01 PM Todd C. Miller <[email protected]> wrote:
>
> On Sun, 24 Jul 2022 23:50:11 -0700, Kastus Shchuka wrote:
>
> > Apparently, restarting getty on tty00 was not enough.
> > After reboot, I got login prompt on tty00 line.
>
> Running "ttyflags -a" as root would probably also fix it without
> the need for a reboot.

This is probably worth a mention in the ttys(5) man page.  It's one of
those things that once you've worked through it, you know, but it's
not at all obvious that HUP-ing init applies changes from every other
column but NOT any flags changes.  I think the wording NetBSD has [1]
is decent:
"Nota Bene: Sending SIGHUP to init(8) does not change the state of the
various tty(4) device flags listed above; the ttyflags(8) program must
be run for changes in those flags to take effect on the devices."

I'm pretty sure I tried 'local' on some Dell servers but it didn't
work for me, on either the physical port or IPMI Serial-over-LAN;
'softcar' did the trick in my case.  Without that I get the same issue
-- getty only works if the device is also the boot console.

Thanks,
-Andrew

[1] http://man.bsd.lv/NetBSD-9.2/ttys

Reply via email to