Cannot run a program at boot that uses a serial device

Colin Watson cjwatson at ubuntu.com
Sat Oct 20 10:38:13 UTC 2018


On Sat, Oct 20, 2018 at 10:08:08AM +0200, Oliver Grawert wrote:
> why waste cycles to systemd here, just use a RUN= statement in the udev
> rule:
>  
> SUBSYSTEM=="tty", 
> ATTRS{idVendor}=="0403", 
> ATTRS{idProduct}=="6001", 
> ATTRS{serial}=="A10xxxx",  
> RUN+="/usr/local/bin/home-energy.py"

That only works if home-energy.py has a brief runtime.  I had the
impression (perhaps wrongly) that it was a long-running process.

-- 
Colin Watson                                       [cjwatson at ubuntu.com]




More information about the ubuntu-users mailing list