On Sat, 16 Jul 2016 15:34:20 +0200 Martin Pitt <[email protected]> wrote: > Control: tag -1 pending > > Wang Jian [2016-05-19 23:59 +0800]: > > getty-static.service starts getty on tty2-6, but container has only 4 > > ttys (1-4) at default. getty will exit and be respawned for tty5-tty6. > > This leads to high cpu usage on host's lxcfs daemon. > > > > There is no point in even wasting four getty processes on tty1-4 in > LXC -- containers are not meant to have gettys on ttys in the first > place. I committed a fix to git for that. > (ConditionVirtualization=!container)
Given Lennarts explanation at [1], I would suggest that we replace that condition with ConditionPathExists=/dev/tty0 (or rather, we replace ConditionPathExists=/dev/tty2 with ConditionPathExists=/dev/tty0 and what you already committed) This is already used in /lib/systemd/system/[email protected], so we'd be consistent behaviour wise. Interestingly, the Condition in [email protected] did not work in Wang's case. @Wang: do you have an overriden [email protected] file in /etc/systemd/system? Michael [1] https://lists.freedesktop.org/archives/systemd-devel/2016-July/037175.html -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Pkg-systemd-maintainers mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-systemd-maintainers
