[systemd-devel] Serial getty on USB dongle insertion

Paul D. DeRocco pderocco at ix.netcom.com
Thu Jul 13 07:15:29 UTC 2017


> From: Andrei Borzenkov [mailto:arvidjaar at gmail.com] 
> 
> Yes, set ENV{SYSTEMD_WANTS}="serial-getty at ttyUSB2.service" property on
> your device in udev rule; this will trigger starting of this service
> when device appears. You probably also want to add
> "BindsTo=dev-ttyUSB2.device" (or whatever name of your device unit is)
> so systemd stops it when dongle is unplugged and does not attempt to
> restart.

Works like a charm. Thanks.

-- 

Ciao,               Paul D. DeRocco
Paul                mailto:pderocco at ix.netcom.com



More information about the systemd-devel mailing list