[systemd-devel] Nspawn / getty restart loop
Lennart Poettering
lennart at poettering.net
Mon Dec 8 17:16:15 PST 2014
On Mon, 08.12.14 09:29, Meech (meechman at gmail.com) wrote:
> I created a fresh container by following the steps here
> https://wiki.archlinux.org/index.php/Arch_systemd_container using the
> command
>
> pacstrap -i -c -d ~/MyContainer base
>
> Not sure what is pulling it in. Nor how to find out.
>
> If I start it via systemd, the journal is quiet until I log in (via
> machinectl login) for the very first time. Then after I logout the
> service goes into a restart loop every 10 seconds.
Hmm, your proposoed fix with ConditionPathExists= is actually right,
after all, sorry for my earlier confusion.
We should restart the getty as long as the pts device is around, but
not do so anymore as soon as it is gone (which happens when
"machinectl login" dies). ConditionPathExists= is a nice way to
implement this.
I have now applied a patch that makes that change.
Thanks for tracking this down, and sorry for the confusion!
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list