<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 16, 2015 at 11:13 AM, Tanu Kaskinen <span dir="ltr">&lt;<a href="mailto:tanu.kaskinen@linux.intel.com" target="_blank">tanu.kaskinen@linux.intel.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, 2015-07-16 at 07:56 -0700, Christopher Larson wrote:<br>
&gt;<br>
&gt; On Thu, Jul 16, 2015 at 3:19 AM, Tanu Kaskinen<br>
</span><span class="">&gt; &lt;<a href="mailto:tanu.kaskinen@linux.intel.com">tanu.kaskinen@linux.intel.com</a>&gt; wrote:<br>
&gt;         On Mon, 2015-07-13 at 09:22 -0700, Christopher Larson wrote:<br>
&gt;         &gt;<br>
&gt;         &gt; On Mon, Jul 13, 2015 at 9:17 AM, Pau Espin Pedrol<br>
</span><div><div class="">&gt;         &gt; &lt;<a href="mailto:pespin.shar@gmail.com">pespin.shar@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;         &gt;         So, pulseaudio is intended to be used as a systemd<br>
&gt;         user<br>
&gt;         &gt;         service, not<br>
&gt;         &gt;         as a systemd system service, and that means it needs<br>
&gt;         to end up<br>
&gt;         &gt;         in<br>
&gt;         &gt;         /usr/lib/systemd/user and not<br>
&gt;         in /lib/systemd/system/.<br>
&gt;         &gt;<br>
&gt;         &gt;         All these changes are part of my efforts to improve<br>
&gt;         systemd<br>
&gt;         &gt;         user<br>
&gt;         &gt;         service support in OE, which is kind of bad nowadays<br>
&gt;         imho.<br>
&gt;         &gt;<br>
&gt;         &gt; Fair enough, thanks for the clarification. Given that<br>
&gt;         systemd user<br>
&gt;         &gt; services require pam, and most embedded distros disable pam,<br>
&gt;         I wonder<br>
&gt;         &gt; if we shouldn’t have an option, at least for daemons in<br>
&gt;         recipes that<br>
&gt;         &gt; can handle it, to switch from user to system via a<br>
&gt;         PACKAGECONFIG, and<br>
&gt;         &gt; possibly default that for the non-pam case.. Hmm.<br>
&gt;<br>
&gt;         Do you mean that there are many distros that have systemd but<br>
&gt;         don&#39;t have<br>
&gt;         pam, and that the lack of pam strongly suggests that the<br>
&gt;         system won&#39;t<br>
&gt;         have any regular users? If so, then your proposal sounds good.<br>
&gt;<br>
&gt; No, I mean that systemd user services require pam, as far as I know,<br>
&gt; because it’s a systemd pam plugin which actually starts and stops the<br>
&gt; user services. Without that hook, they won’t be run at all.<br>
<br>
</div></div>OK, then it&#39;s less clear that services should be run in system mode by<br>
default when pam isn&#39;t present. If the lack of pam doesn&#39;t imply lack of<br>
regular users, at least pulseaudio should still run as a user service by<br>
default (but not started by systemd if pam isn&#39;t enabled).</blockquote></div><br>Running it as a user service by default when it’ll not actually ever be run, lacking a mechanism to run it, seems pretty pointless to me. If someone installs pulseaudio, presumably they want it to actually run.<br>-- <br><div class="gmail_signature">Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics</div>
</div></div>