<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 13, 2015 at 3:23 AM, Pau Espin Pedrol <span dir="ltr">&lt;<a href="mailto:pespin.shar@gmail.com" target="_blank">pespin.shar@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":b2" class="a3s" style="overflow:hidden">I am not sure which is the behavior with those paths right now and how<br>
it should be.<br>
<br>
I just checked this:<br>
<a href="http://www.freedesktop.org/software/systemd/man/systemd.unit.html#Unit%20Load%20Path" rel="noreferrer" target="_blank">http://www.freedesktop.org/software/systemd/man/systemd.unit.html#Unit%20Load%20Path</a><br>
<br>
So, it seems according to documentation that system services should be<br>
installed under /usr/lib/systemd/system, but currently they are<br>
installed in /lib/systemd/system in my generated image. Is that a<br>
expected behaviour? Shouldn&#39;t we try to follow documentation? I see<br>
that sometimes /lib/systemd/system path is appended to the dirs in<br>
systemdsystemunitpath, but it&#39;s not stated in the documentation,<br>
that&#39;s a <span class="il">bit</span> strange.<br></div></blockquote><div><br></div><div>Depends on the distro. Ubuntu, for example, uses /lib/systemd.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":b2" class="a3s" style="overflow:hidden">For user services, /usr/lib/systemd/user is already being used as<br>
stated in docs.<br>
<br>
Now, when multilib comes in, I get lost. If I understand correctly,<br>
with multilib enabled we have too /lib64 and /usr/lib64. Are then<br>
systemd service files suppoused to be installed in /usr/lib/systemd/<br>
or in /usr/lib64/systemd/ ? If I undersood correctly your comment you<br>
meant they should still be going into /usr/lib/systemd right?<br></div></blockquote><div><br></div><div>Yes, we don’t want arch-independent files going into arch-specific dirs. </div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":b2" class="a3s" style="overflow:hidden">
Now, talking about <span class="il">bitbake</span>.<span class="il">conf</span>. I see there&#39;s already a line with the<br>
following:<br>
export systemd_unitdir = &quot;/lib/systemd&quot;<br>
<br>
So, apart from your nonarch issue, I think it would also be a good<br>
idea to split systemd_unitdir into system and user, as done by<br>
provided pc in systemd (src/core/<a href="http://systemd.pc.in" rel="noreferrer" target="_blank">systemd.pc.in</a>):<br>
1- If still want system services to be in /lib and user services to be<br>
in /usr/lib:<br>
export nonarch_libdir = &quot;${prefix}/lib&quot;<br>
<br>
export systemd_system_unitdir = &quot;${nonarch_base_libdir}/systemd/system&quot;<br>
export systemd_user_unitdir = &quot;${nonarch_libdir}/systemd/user&quot;<br>
or<br>
export systemd_system_unitdir = &quot;${nonarch_base_libdir}/systemd&quot;<br>
export systemd_user_unitdir = &quot;${nonarch_libdir}/systemd&quot;<br>
<br>
<br>
2- If you want both in /usr/lib:<br>
export nonarch_libdir = &quot;${prefix}/lib&quot;<br>
<br>
export systemd_system_unitdir = &quot;${nonarch_libdir}/systemd/system&quot;<br>
export systemd_user_unitdir = &quot;${nonarch_libdir}/systemd/user&quot;<br>
or<br>
export systemd_system_unitdir = &quot;${nonarch_libdir}/systemd&quot;<br>
export systemd_user_unitdir = &quot;${nonarch_libdir}/systemd&quot;</div></blockquote></div><br>I don’t really see why one would want some of their service files in one libdir and the rest in another. Is there a reason to not just obey systemd_unitdir in pulseaudio?</div><div class="gmail_extra">-- <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>