Re: [systemd-devel] Another attempt: Making dependencies properly overridable

2015-04-23 Thread Lennart Poettering
On Sun, 19.04.15 09:29, Andrei Borzenkov (arvidj...@gmail.com) wrote: Unless I'm mistaken, the only real change is that Wants= will clear list, just like it does it for ExecStart=. This should be rather straightforward to implement I guess. Actually it's not that easy. You need to collect the

Re: [systemd-devel] Another attempt: Making dependencies properly overridable

2015-04-23 Thread Lennart Poettering
On Mon, 16.02.15 16:19, Christian Seiler (christ...@iwakd.de) wrote: Last time I talked about this here, there was a lot of confusion, so I didn't pursue it further. But I would really like to get this to work, but before I start with a patch, I'd like to explain what I'd like to do before

Re: [systemd-devel] Another attempt: Making dependencies properly overridable

2015-04-23 Thread Lennart Poettering
On Sun, 19.04.15 17:08, Andrei Borzenkov (arvidj...@gmail.com) wrote: What about Wants-=e.service in dropin? Dropins are processed after .{wants,requires}.d and has advantage that you can remove also static dependency from unit definition file, not only mask another directory. This has been

Re: [systemd-devel] Another attempt: Making dependencies properly overridable

2015-04-23 Thread Christian Seiler
On 04/23/2015 08:36 PM, Lennart Poettering wrote: I mean, so far the deps we set are combined from: unit file (1) + dropins(2) + .wants/ + .requires/ symlinks (3) + automatic deps

Re: [systemd-devel] Another attempt: Making dependencies properly overridable

2015-04-23 Thread Christian Seiler
On 04/23/2015 08:38 PM, Lennart Poettering wrote: On Sun, 19.04.15 09:29, Andrei Borzenkov (arvidj...@gmail.com) wrote: Unless I'm mistaken, the only real change is that Wants= will clear list, just like it does it for ExecStart=. This should be rather straightforward to implement I guess.

Re: [systemd-devel] Another attempt: Making dependencies properly overridable

2015-04-23 Thread Dimitri John Ledkov
On 23 April 2015 at 14:58, Christian Seiler christ...@iwakd.de wrote: On 04/23/2015 08:36 PM, Lennart Poettering wrote: I mean, so far the deps we set are combined from: unit file (1) + dropins(2) + .wants/ +

Re: [systemd-devel] Another attempt: Making dependencies properly overridable

2015-04-19 Thread Zbigniew Jędrzejewski-Szmek
On Sun, Apr 19, 2015 at 09:29:55AM +0300, Andrei Borzenkov wrote: В Fri, 17 Apr 2015 16:47:58 + Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl пишет: On Mon, Feb 16, 2015 at 04:19:47PM +0100, Christian Seiler wrote: Am 2015-02-16 14:16, schrieb Lennart Poettering: On Mon, 16.02.15

Re: [systemd-devel] Another attempt: Making dependencies properly overridable

2015-04-19 Thread Andrei Borzenkov
В Fri, 17 Apr 2015 16:47:58 + Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl пишет: On Mon, Feb 16, 2015 at 04:19:47PM +0100, Christian Seiler wrote: Am 2015-02-16 14:16, schrieb Lennart Poettering: On Mon, 16.02.15 14:13, Michael Biebl (mbi...@gmail.com) wrote: Not quite. While you can

Re: [systemd-devel] Another attempt: Making dependencies properly overridable

2015-04-19 Thread Andrei Borzenkov
В Sun, 19 Apr 2015 13:19:37 + Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl пишет: On Sun, Apr 19, 2015 at 09:29:55AM +0300, Andrei Borzenkov wrote: В Fri, 17 Apr 2015 16:47:58 + Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl пишет: On Mon, Feb 16, 2015 at 04:19:47PM +0100,

Re: [systemd-devel] Another attempt: Making dependencies properly overridable

2015-04-17 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Feb 16, 2015 at 04:19:47PM +0100, Christian Seiler wrote: Am 2015-02-16 14:16, schrieb Lennart Poettering: On Mon, 16.02.15 14:13, Michael Biebl (mbi...@gmail.com) wrote: Not quite. While you can use drop-in snippets to amend orderings/depends, it's (unfortunately) not possible to

[systemd-devel] Another attempt: Making dependencies properly overridable

2015-02-16 Thread Christian Seiler
Am 2015-02-16 14:16, schrieb Lennart Poettering: On Mon, 16.02.15 14:13, Michael Biebl (mbi...@gmail.com) wrote: Not quite. While you can use drop-in snippets to amend orderings/depends, it's (unfortunately) not possible to override Wants=,Before= etc. There have been discussions to allow