Re: Collect logs over serial

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fr, 01.02.19 07:18, Jóhann B. Guðmundsson (johannbg@xxxxxxxxx) wrote:

> On 1/31/19 4:34 PM, Paul Menzel wrote:
>
> > numbered differently
>
>
> You can try to do this via tty symlinked udev rule, something along the
> lines of
>
> # /etc/udev/rules.d/99-consistent-serial.rules
>
> # Generic sample ( replace $FOO with something relevant to your environment
> )
>
> SUBSYSTEM=="tty", KERNEL=="tty$FOO", SYMLINK+="ttySLAB0", TAG+="systemd",
> ENV{SYSTEMD_WANTS}+="tty-logger.service"

This should match ACTION!="remove" btw.

If you have multiple of these it might make sense to use a
template service for these btw, i.e. pull in tty-logger@%k.service here.

Lennart

--
Lennart Poettering, Red Hat
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux