[systemd-devel] systemd version of an inittab entry -- for VT100 terminal

Lennart Poettering mzerqung at 0pointer.de
Tue Jun 26 19:54:20 UTC 2018


On Di, 26.06.18 19:29, Michael Asher (masher at deltatau.com) wrote:

> On SysV we set up a terminal/serial interface on our motion-controllers using /etc/inittab, see below.
> 
>    /etc/inittab
>      # How to put a getty on a serial line (for a terminal)
>       T0:23:respawn:/sbin/getty -L ttyS0 115200 vt100
> 
> I have made a few attempts to do this with systemd none have worked.  All assistance is much appreciated.

We provide an instantiable unit file for this. try this command:

        systemctl enable serial-getty at ttyS0.service

And similar for other ports.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list