[systemd-devel] Collect logs over serial
Lennart Poettering
lennart at poettering.net
Mon Feb 4 12:08:24 UTC 2019
On Fr, 01.02.19 07:18, Jóhann B. Guðmundsson (johannbg at gmail.com) 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
More information about the systemd-devel
mailing list