<div dir="ltr">Hello!<br><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 4, 2015 at 8:54 AM, Scott Dowdle <span dir="ltr">&lt;<a href="mailto:dowdle@montanalinux.org" target="_blank">dowdle@montanalinux.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Greetings,<br>
<span class=""><br>
----- Original Message -----<br>
&gt; Just installed Debian 8 &quot;Jessie&quot; in VE. Used almost the same template<br>
&gt; creation script as for Squeeze and started cleaning some things up.<br>
&gt;<br>
&gt; One particular thing I&#39;ve noted is agetty processes being started for<br>
&gt; tty{1..6} via systemd. Some lurking and asking on #systemd@freenode<br>
&gt; revealed several possibly solutions:<br>
&gt; 1) completely disable (note that you should use &quot;mask&quot; command) the<br>
&gt; service, like:<br>
&gt; systemctl mask getty-static.service<br>
&gt; 2) use conditional in Unit definition<br>
&gt; /lib/systemd/system/getty-static.service<br>
&gt; ConditionVirtualization=!openvz<br>
&gt;<br>
&gt; (i&#39;d suggest to use ConditionVirtualization=!lxc for LXC too)<br>
<br>
</span>On #2 I don&#39;t think you want to edit the package provided service file as that could get replaced with an update.  I think you can copy it to /etc/systemd/service/ and make changes there... or at least I believe that&#39;s how it is supposed to work.  I would think #1 would be a better solution.<br></blockquote><div>For now i&#39;m doing masking on template creation ( <a href="https://github.com/CoolCold/openvz-tools/blob/master/templating/prep-jessie.sh#L94">https://github.com/CoolCold/openvz-tools/blob/master/templating/prep-jessie.sh#L94</a> ) , so using #1 <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class=""><br>
&gt; So, knowledge is shared, now the question part.<br>
&gt;<br>
&gt; 1) to OpenVZ devs - are there any chances ttys (except console) may<br>
&gt; be needed?<br>
<br>
</span>I don&#39;t think so... but even if one is started, it shouldn&#39;t really use up much resources.  I believe they are actually started on demand if and when one switches over to a virtual console.<br></blockquote><div>About resources:<br>root@ddiburatest:~# ps -eo  &#39;rsz,command&#39;|grep getty<br>  856 /sbin/agetty --noclear tty2 linux<br>  892 /sbin/agetty --noclear --keep-baud console 115200 38400 9600 vt102<br>  844 /sbin/agetty --noclear tty3 linux<br>  844 /sbin/agetty --noclear tty4 linux<br>  856 /sbin/agetty --noclear tty5 linux<br>  848 /sbin/agetty --noclear tty6 linux<br><br></div><div>so once instance is eating something like 900kb of RAM (resident size), though I don&#39;t see any difference from free -m output after stopping them. <br>about on demand: From what I see, it is not started on demand as A) there is no any switch to other virtual consoles by hand B) i&#39;ve checked on VMware VM - and I clearly see it has been dynamically activated when i use alt+ctrl+f1/f2..<br></div><div>And anyway, it isn&#39;t needed, so why consume resources?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class=""><br>
&gt; 2) to Ola Lundqvist , what do you think, is it worth to fill the bug<br>
&gt; to Debian&#39;s systemd package?<br>
<br>
</span>It doesn&#39;t seem like a bug to me.<br></blockquote><div>I&#39;m thinking about this as enhancement, not a but here, just filling via standard Debian bugs report interface.<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
TYL,<br>
<span class=""><font color="#888888">--<br>
Scott Dowdle<br>
704 Church Street<br>
Belgrade, MT 59714<br>
(406)388-0827 [home]<br>
(406)994-3931 [work]<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openvz.org">Users@openvz.org</a><br>
<a href="https://lists.openvz.org/mailman/listinfo/users" target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Best regards,<br>[COOLCOLD-RIPN] </div>
</div></div></div>