<div dir="ltr">Disabling seems to have no effect, it's a static service:<div><br></div><div><div>console-getty.service disabled</div><div>container-getty@.service static</div><div>getty@.service enabled</div><div>serial-getty@.service disabled</div><div><br></div></div><div>However, I think adding this to the [unit] section seems to help:</div><div><br></div><div>ConditionPathExists=/dev/pts/%I<br></div><div><br></div><div>Still testing. Thanks.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 6, 2014 at 11:05 AM, Florian Koch <span dir="ltr"><<a href="mailto:florian.koch1981@gmail.com" target="_blank">florian.koch1981@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">the container-getty@.service only needs to be present, not enabled,<br>
you can disable the unit, then the logs go away<br>
<div><div class="h5"><br>
2014-12-06 15:49 GMT+01:00 Meech <<a href="mailto:meechman@gmail.com">meechman@gmail.com</a>>:<br>
> Running Arch64 / Systemd 217. I have a barebones container initialized<br>
> with pacstrap. The conatiner is stored in /var/lib and started via systemd<br>
> (systemctl start systemd-nspawn@mycontainer)<br>
><br>
> When nobody is logged in, the journal is spammed every 10 seconds with<br>
> agetty errors. How can I prevent this? It seems like it's in a never<br>
> ending restart loop until somebody is logged in.<br>
><br>
><br>
> Dec 06 00:13:53 vpn agetty[1582]: /dev/pts/0: No such file or directory<br>
> Dec 06 00:14:03 vpn systemd[1]: container-getty@0.service has no holdoff<br>
> time, scheduling restart.<br>
> Dec 06 00:14:03 vpn systemd[1]: Stopping Container Getty on /dev/pts/0...<br>
> Dec 06 00:14:03 vpn systemd[1]: Starting Container Getty on /dev/pts/0...<br>
> Dec 06 00:14:03 vpn systemd[1]: Started Container Getty on /dev/pts/0.<br>
> Dec 06 00:14:03 vpn agetty[1583]: /dev/pts/0: No such file or directory<br>
> Dec 06 00:14:13 vpn systemd[1]: container-getty@0.service has no holdoff<br>
> time, scheduling restart.<br>
> Dec 06 00:14:13 vpn systemd[1]: Stopping Container Getty on /dev/pts/0...<br>
> Dec 06 00:14:13 vpn systemd[1]: Starting Container Getty on /dev/pts/0...<br>
> Dec 06 00:14:13 vpn systemd[1]: Started Container Getty on /dev/pts/0.<br>
><br>
> Thanks.<br>
><br>
</div></div>> _______________________________________________<br>
> systemd-devel mailing list<br>
> <a href="mailto:systemd-devel@lists.freedesktop.org">systemd-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
><br>
</blockquote></div><br></div>