<div dir="ltr">Hi Jérémy,<div><br></div><div>Thank you, but I read the section "Mapping of unit properties to their inverses" in the man page <a href="https://www.freedesktop.org/software/systemd/man/systemd.unit.html">https://www.freedesktop.org/software/systemd/man/systemd.unit.html</a> and then found out the PropagatesReloadTo= and ReloadPropagatedFrom= are inverses to each other and both can be configured in a unit file. I was wondering why PartOf= and ConsistsOf= are not the case. Thank you.</div><div><br></div><div>John Lin</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">Jérémy Rosen <<a href="mailto:jeremy.rosen@smile.fr">jeremy.rosen@smile.fr</a>> 於 2018年2月27日 週二 下午4:35寫道:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF">
<br>
<br>
<div class="m_2960446604922631465moz-cite-prefix">On 27/02/2018 02:49, 林自均 wrote:<br>
</div>
<blockquote type="cite">
<pre>Hi both Michal,
Thank you for the quick responses! I think I will keep on using the tedious
PartOf= directive.
However, may I ask why ConsistsOf= is readonly? If I can use it in my
"my-apps.target", that would be great.
</pre>
</blockquote></div><div text="#000000" bgcolor="#FFFFFF">
Because "ConsistsOf" doesn't exist in the way you think it does...<br>
<br>
Every relation between units (Wants, Before, PartOf) needs to have
an<br>
internal, reverse relation for accounting purpose<br>
<br>
That reverse relation is usually an internal detail, but it is handy
to expose<br>
it in "systemctl show" & co.<br>
<br>
So that's what you see, an internal property exposed for
ease-of-use. not an<br>
external, user configurable property</div><div text="#000000" bgcolor="#FFFFFF"><br>
<br>
<blockquote type="cite">
<pre>
John Lin
Michal Koutný <a class="m_2960446604922631465moz-txt-link-rfc2396E" href="mailto:mkoutny@suse.com" target="_blank"><mkoutny@suse.com></a> 於 2018年2月26日 週一 下午7:28寫道:
</pre>
<blockquote type="cite">
<pre>
On 02/26/2018 11:08 AM, Michal Sekletar wrote:
</pre>
<blockquote type="cite">
<pre>Unfortunately, we don't have a dependency (AFAIK) that only propagates
stop actions.
</pre>
</blockquote>
<pre>FTR (not helpful for the original problem), there exists ConsistsOf= as
an inverse of PartOf= dependency. However, it's read only currently (or
strictly speaking, writable through the PartOf= endpoint).
Michal
_______________________________________________
systemd-devel mailing list
<a class="m_2960446604922631465moz-txt-link-abbreviated" href="mailto:systemd-devel@lists.freedesktop.org" target="_blank">systemd-devel@lists.freedesktop.org</a>
<a class="m_2960446604922631465moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" target="_blank">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a>
</pre>
</blockquote>
<pre>
</pre>
<br>
<fieldset class="m_2960446604922631465mimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
systemd-devel mailing list
<a class="m_2960446604922631465moz-txt-link-abbreviated" href="mailto:systemd-devel@lists.freedesktop.org" target="_blank">systemd-devel@lists.freedesktop.org</a>
<a class="m_2960446604922631465moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" target="_blank">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a>
</pre>
</blockquote>
<br>
</div><div text="#000000" bgcolor="#FFFFFF"><div class="m_2960446604922631465moz-signature">-- <br>
<div>
<font face="Raleway, regular">
<table style="padding:20px" border="0">
<tbody>
<tr>
<td style="font-size:13px;color:#ff8054;text-align:center;padding-right:30px"> <a href="http://www.smile.eu/" target="_blank"> <img style="max-width:100%;height:auto" src="http://ftp.smile.fr/client/Communication/signature/img/Logo-new.png" alt="SMILE"> </a><br>
<br>
<p>20 rue des Jardins<br>
92600 Asnières-sur-Seine</p>
</td>
<td style="border-left:1px solid #3b7ffe;padding-left:20px;font-size:13px;color:#ff8054">
<div style="color:#ff8054;font-size:14px"> <b>Jérémy
ROSEN</b> </div>
<div style="color:#3b7ffe;font-size:13px">
Architecte technique<br>
Responsable de l'expertise Smile-ECS </div>
<br>
<div style="color:#3b7ffe;font-size:13px"> <span style="white-space:nowrap"><img style="margin-right:5px" src="http://ftp.smile.fr/client/Communication/signature/img/mail.png" alt="email" height="10" width="12"> <a href="mailto:jeremy.rosen@smile.fr" style="color:#3b7ffe;font-size:13px;text-decoration:none" target="_blank">jeremy.rosen@smile.fr</a>
</span> <br>
<span style="white-space:nowrap"><img style="margin-right:5px" src="http://ftp.smile.fr/client/Communication/signature/img/phone.png" alt="phone" height="10" width="10"></span>
<a href="tel:+33%201%2041%2040%2029%2067" value="+33141402967" target="_blank">+33141402967</a> <br>
<span style="white-space:nowrap"><img style="margin-right:5px" src="http://ftp.smile.fr/client/Communication/signature/img/web.png" alt="url" height="12" width="12">
<a href="http://www.smile.eu" style="color:#3b7ffe;font-size:13px;text-decoration:none" target="_blank">http://www.smile.eu</a> </span>
</div>
<br>
<div> <span><a style="margin-right:5px" href="https://twitter.com/GroupeSmile" target="_blank"><img src="http://ftp.smile.fr/client/Communication/signature/img/rs-twitter.png" alt="Twitter" style="max-width:100%;height:auto"></a></span> <span><a style="margin-right:5px" href="https://www.facebook.com/smileopensource" target="_blank"><img src="http://ftp.smile.fr/client/Communication/signature/img/rs-facebook.png" alt="Facebook" style="max-width:100%;height:auto"></a></span> <span><a style="margin-right:5px" href="https://www.linkedin.com/company/smile" target="_blank"><img src="http://ftp.smile.fr/client/Communication/signature/img/rs-linkedin.png" alt="LinkedIn" style="max-width:100%;height:auto"></a></span> <span><a style="margin-right:5px" href="https://github.com/Smile-SA" target="_blank"><img src="http://ftp.smile.fr/client/Communication/signature/img/rs-github.png" alt="Github" style="max-width:100%;height:auto"></a></span> </div>
</td>
</tr>
</tbody>
</table>
<br>
<div> <a href="http://smile.eu/?utm_source=signature&utm_medium=email&utm_campaign=signature" target="_blank"><img src="http://signature.smile.eu/assets/img/bandeau_mail_smile2017.gif.gif" alt="Découvrez l’univers Smile, rendez-vous sur
smile.eu" border="0"></a></div>
<br>
<div style="color:#a3acb5;font-size:10px"> <img src="http://ftp.smile.fr/client/Communication/signature/img/eco.png" alt="eco" height="11" width="13"> Pour la planète,
n'imprimez ce mail que si c'est nécessaire </div>
</font>
</div>
</div>
</div>
_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org" target="_blank">systemd-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
</blockquote></div>