Re: [systemd-devel] Prioritize the /etc configuration over /usr/lib also with .include

2014-09-17 Thread Pavel Raiskup
On Wednesday 17 of September 2014 01:33:02 Zbigniew Jędrzejewski-Szmek wrote: On Tue, Sep 16, 2014 at 05:07:06PM +0200, Pavel Raiskup wrote: for example tmpfiles.d/systemd.conf and tmpfiles.d/systemd-nologin.conf are split exactly for the purpose of making it easier to override

Re: [systemd-devel] Prioritize the /etc configuration over /usr/lib also with .include

2014-09-17 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Sep 17, 2014 at 08:52:00AM +0200, Pavel Raiskup wrote: On Wednesday 17 of September 2014 01:33:02 Zbigniew Jędrzejewski-Szmek wrote: On Tue, Sep 16, 2014 at 05:07:06PM +0200, Pavel Raiskup wrote: for example tmpfiles.d/systemd.conf and tmpfiles.d/systemd-nologin.conf are split

Re: [systemd-devel] Prioritize the /etc configuration over /usr/lib also with .include

2014-09-17 Thread Pavel Raiskup
On Wednesday 17 of September 2014 11:50:08 Zbigniew Jędrzejewski-Szmek wrote: On Wed, Sep 17, 2014 at 08:52:00AM +0200, Pavel Raiskup wrote: Thanks, I agree, and yet another rule on top of that -- the /usr/lib dropins _are ignored_ if /etc service overriding the one in /usr/lib exists [1]

Re: [systemd-devel] Prioritize the /etc configuration over /usr/lib also with .include

2014-09-17 Thread Andrei Borzenkov
В Wed, 17 Sep 2014 13:40:11 +0200 Pavel Raiskup prais...@redhat.com пишет: On Wednesday 17 of September 2014 11:50:08 Zbigniew Jędrzejewski-Szmek wrote: On Wed, Sep 17, 2014 at 08:52:00AM +0200, Pavel Raiskup wrote: Thanks, I agree, and yet another rule on top of that -- the /usr/lib

Re: [systemd-devel] Prioritize the /etc configuration over /usr/lib also with .include

2014-09-17 Thread Pavel Raiskup
On Wednesday 17 of September 2014 20:06:50 Andrei Borzenkov wrote: В Wed, 17 Sep 2014 13:40:11 +0200 Pavel Raiskup prais...@redhat.com пишет: On Wednesday 17 of September 2014 11:50:08 Zbigniew Jędrzejewski-Szmek wrote: On Wed, Sep 17, 2014 at 08:52:00AM +0200, Pavel Raiskup wrote:

Re: [systemd-devel] Prioritize the /etc configuration over /usr/lib also with .include

2014-09-17 Thread Andrei Borzenkov
В Wed, 17 Sep 2014 18:29:35 +0200 Pavel Raiskup prais...@redhat.com пишет: On Wednesday 17 of September 2014 20:06:50 Andrei Borzenkov wrote: В Wed, 17 Sep 2014 13:40:11 +0200 Pavel Raiskup prais...@redhat.com пишет: On Wednesday 17 of September 2014 11:50:08 Zbigniew

Re: [systemd-devel] Prioritize the /etc configuration over /usr/lib also with .include

2014-09-17 Thread Pavel Raiskup
On Wednesday 17 of September 2014 20:44:38 Andrei Borzenkov wrote: В Wed, 17 Sep 2014 18:29:35 +0200 Pavel Raiskup prais...@redhat.com пишет: On Wednesday 17 of September 2014 20:06:50 Andrei Borzenkov wrote: В Wed, 17 Sep 2014 13:40:11 +0200 Pavel Raiskup prais...@redhat.com пишет:

Re: [systemd-devel] Prioritize the /etc configuration over /usr/lib also with .include

2014-09-17 Thread Andrei Borzenkov
В Wed, 17 Sep 2014 18:46:21 +0200 Pavel Raiskup prais...@redhat.com пишет: On Wednesday 17 of September 2014 20:44:38 Andrei Borzenkov wrote: В Wed, 17 Sep 2014 18:29:35 +0200 Pavel Raiskup prais...@redhat.com пишет: On Wednesday 17 of September 2014 20:06:50 Andrei Borzenkov wrote:

Re: [systemd-devel] Prioritize the /etc configuration over /usr/lib also with .include

2014-09-17 Thread Pavel Raiskup
On Wednesday 17 of September 2014 20:58:02 Andrei Borzenkov wrote: Huh? Argh! .. and finally, thanks a lot for your exmaple. I iterated into the sitation that this is not about .include. Probably due to some false premise or testing result, I lived in false feeling that the .include is _the

[systemd-devel] Prioritize the /etc configuration over /usr/lib also with .include

2014-09-16 Thread Pavel Raiskup
Hi, consider the situation that admin has /etc/systemd/system/a.service, which includes via .include the /usr/lib/systemd/system/a.service. Then in our case there exists also packaged /usr/lib/systemd/system/a.service.d/ with existing drop-in. In this case - the setup from /etc/ is beaten by

Re: [systemd-devel] Prioritize the /etc configuration over /usr/lib also with .include

2014-09-16 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Sep 16, 2014 at 01:21:30PM +0200, Pavel Raiskup wrote: Hi, consider the situation that admin has /etc/systemd/system/a.service, which includes via .include the /usr/lib/systemd/system/a.service. Then in our case there exists also packaged /usr/lib/systemd/system/a.service.d/ with

Re: [systemd-devel] Prioritize the /etc configuration over /usr/lib also with .include

2014-09-16 Thread Tomasz Torcz
On Tue, Sep 16, 2014 at 03:16:12PM +0200, Zbigniew Jędrzejewski-Szmek wrote: On Tue, Sep 16, 2014 at 01:21:30PM +0200, Pavel Raiskup wrote: Hi, consider the situation that admin has /etc/systemd/system/a.service, which includes via .include the /usr/lib/systemd/system/a.service. Then in

Re: [systemd-devel] Prioritize the /etc configuration over /usr/lib also with .include

2014-09-16 Thread Pavel Raiskup
This is reply to both Tomasz and Zbigniew, thanks for reactions! On Tuesday 16 of September 2014 16:14:16 Tomasz Torcz wrote: On Tue, Sep 16, 2014 at 03:16:12PM +0200, Zbigniew Jędrzejewski-Szmek wrote: On Tue, Sep 16, 2014 at 01:21:30PM +0200, Pavel Raiskup wrote: I would expect that

Re: [systemd-devel] Prioritize the /etc configuration over /usr/lib also with .include

2014-09-16 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Sep 16, 2014 at 04:35:50PM +0200, Pavel Raiskup wrote: This is reply to both Tomasz and Zbigniew, thanks for reactions! On Tuesday 16 of September 2014 16:14:16 Tomasz Torcz wrote: On Tue, Sep 16, 2014 at 03:16:12PM +0200, Zbigniew Jędrzejewski-Szmek wrote: On Tue, Sep 16, 2014 at

Re: [systemd-devel] Prioritize the /etc configuration over /usr/lib also with .include

2014-09-16 Thread Pavel Raiskup
On Tuesday 16 of September 2014 16:41:49 Zbigniew Jędrzejewski-Szmek wrote: On Tue, Sep 16, 2014 at 04:35:50PM +0200, Pavel Raiskup wrote: This should not be a revert. Just make it properly defined? It was already properly defined, maybe just not explicitly documented for this case. And

Re: [systemd-devel] Prioritize the /etc configuration over /usr/lib also with .include

2014-09-16 Thread Jóhann B. Guðmundsson
On 09/16/2014 01:16 PM, Zbigniew Jędrzejewski-Szmek wrote: On Tue, Sep 16, 2014 at 01:21:30PM +0200, Pavel Raiskup wrote: Hi, consider the situation that admin has /etc/systemd/system/a.service, which includes via .include the /usr/lib/systemd/system/a.service. Then in our case there exists

Re: [systemd-devel] Prioritize the /etc configuration over /usr/lib also with .include

2014-09-16 Thread Pavel Raiskup
On Tuesday 16 of September 2014 16:42:32 Jóhann B. Guðmundsson wrote: On 09/16/2014 01:16 PM, Zbigniew Jędrzejewski-Szmek wrote: This would change the way that drop-ins work. Your model is not necessarily worse, but dropins have been the advertised way to do overiddes for a while, and we

Re: [systemd-devel] Prioritize the /etc configuration over /usr/lib also with .include

2014-09-16 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Sep 16, 2014 at 05:07:06PM +0200, Pavel Raiskup wrote: for example tmpfiles.d/systemd.conf and tmpfiles.d/systemd-nologin.conf are split exactly for the purpose of making it easier to override separately. The case of unit files is slightly different, but we really want to have the