With the .include mechanism, I can overwrite or delete the contents of a directive, e.g.:
What I cannot do currently is extending the old value, e.g.:
This would be helpful (and at least two other people on #systemd also wished for it when I asked).
Lennart (et al), is that something you’d accept? If so, how precisely should it work? I.e. how should one refer to the old value? A format string value? A pseudo-variable? A prefix of some sort?
Let me know and I’ll be happy to provide a patch.
So, humm. not sure.
This isn't that easy I fear, as ExecStart= may be used multiple times in Type=oneshot units, and which one would you replace then?
Also, I can see the ebenfit of extending command lines, but I wouldn't want to make this too flexible, so the only thing that would be OK I think would be to allow a syntax like ExecStart+= or ExecStart=+ to append to the end...
But still, I don't see how the multiple ExecStart= assignment issue could be dealt with. Ideas?
(In reply to comment #1)
> So, humm. not sure.
> This isn't that easy I fear, as ExecStart= may be used multiple times in
> Type=oneshot units, and which one would you replace then?
> But still, I don't see how the multiple ExecStart= assignment issue could be
> dealt with. Ideas?
Can we simply make this fail when there is more than one ExecStart= directive, given that there is no good way of handling that situation anyway?