<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Feb 1, 2016 at 11:54 AM, arnaud gaboury <span dir="ltr"><<a href="mailto:arnaud.gaboury@gmail.com" target="_blank">arnaud.gaboury@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On Mon, Feb 1, 2016 at 10:48 AM, Mantas Mikulėnas <<a href="mailto:grawity@gmail.com">grawity@gmail.com</a>> wrote:<br>
> On Mon, Feb 1, 2016 at 11:37 AM, arnaud gaboury <<a href="mailto:arnaud.gaboury@gmail.com">arnaud.gaboury@gmail.com</a>><br>
> wrote:<br>
>><br>
>> $ systemctl --version<br>
>> systemd 22<br>
><br>
><br>
> v22 was released five years ago, are you sure?<br>
</span>222, sorry for the typo<br>
<span class=""><br>
<br>
><br>
>><br>
>> One way to pass additional options is to add one of these lines in<br>
>> the [Service] part of the unit file:<br>
>><br>
>> ------------<br>
>> Environment=ONE='one'<br>
>> EnvironmentFile=/path/to<br>
>> -------------------<br>
>><br>
>> If I am right, there is another possible mechanism since recent<br>
>> versions by adding a configuration file somewhere in /etc/systemd, but<br>
>> I can't remember how exactly do it. I think the way is to edit a<br>
>> MyService.conf and place it in /etc/systemd/system.conf.d. Am I right?<br>
>> /etc/systemd/system/MyService.service.conf directory is to add<br>
>> override vendor settings. I<br>
><br>
><br>
> Search systemd.unit(5) for "drop-in". There is no special syntax, the<br>
> additional .conf files act exactly like a part of the main unit file.<br>
<br>
</span>Yes I have seen it. This mechanism uses<br>
/etc/systemd/system/MyService.service.conf directory to store a<br>
locale.conf. But what about using /etc/systemd/systemd.conf.d<br>
directory instead ?<br></blockquote><div><br></div><div>What about it? systemd.conf.d is for extending systemd.conf (just like MyService.service.d/ is for exending MyService.service), nothing more. It has no place for per-unit configuration.</div></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></div></div>
</div></div>