usb serial console and systemd?

Kevin Martin kevintm at ameritech.net
Tue Oct 25 13:21:41 UTC 2011



On 10/24/2011 11:54 AM, Kevin Martin wrote:
> I can't seem to get systemd to spawn a getty on a USB tty.  Here's what I've done:
>
> # ln -sf /lib/systemd/system/getty at .service /etc/systemd/system/getty.target.wants/getty at ttyUSB0.service
> # systemctl daemon-reload
> # systemctl start getty at ttyUSB0.service
>
> When I look at the gettys that are running, all I see are:
>
> root      1153     1  0 Oct22 tty6     00:00:00 /sbin/agetty tty6 38400
> root      1154     1  0 Oct22 tty4     00:00:00 /sbin/agetty tty4 38400
> root      1155     1  0 Oct22 tty5     00:00:00 /sbin/agetty tty5 38400
> root      1156     1  0 Oct22 tty3     00:00:00 /sbin/agetty tty3 38400
> root      1157     1  0 Oct22 tty2     00:00:00 /sbin/agetty tty2 38400
>
>
> I *do* have a ttyUSB0:
>
> [27151.541139] usb 1-1.2: pl2303 converter now attached to ttyUSB0
>
>
> But can't seem to get a getty.  What have I missed (sure was easier under inittab)?  Oh, and where do you set the speed, vt, etc. for the getty under systemd?
>
>
>
Interesting.  After my machine hung again and I had to hard reboot, the getty for ttyUSB0 now starts.  I'm still not sure where to
enable different speed settings, tell it to run a vt100, as the systemd documentation is fairly confusing IMO.  But I'll keep
looking.  If anybody knows this off the top of their heads, please share it here.

Thanks.

Kevin Martin


More information about the users mailing list