[systemd-devel] Supporting ExecStartPre= and friends in `systemctl set-property` or `systemd-run -p`

Ivan Shapovalov intelfx100 at gmail.com
Tue Mar 24 01:05:35 PDT 2015


On 2015-03-23 at 13:45 +0000, Zbigniew Jędrzejewski-Szmek wrote:
> On Mon, Mar 23, 2015 at 04:04:28PM +0300, Ivan Shapovalov wrote:
> > Hello,
> > 
> > is it possible/allowed/desired to support assigning ExecStartPre= and
> > similar options via dbus interface, i. e. in `systemctl set-property` or
> > `systemd-run -p`?
> > 
> > I'm hitting a usecase when I need to run a service with multiple
> > executed processes via `systemd-run`. I think this makes sense to
> > support, isn't it?
> Sounds like creating a transient unit would be better.

So, actually, I've ended up dynamically creating two dependent units
(because ExecStartPre= processes are not allowed to go into background),
but the question is still there -- how to make a unit automatically go
away after exiting? IOW, how to make a unit transient?

-- 
Ivan Shapovalov / intelfx /
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 213 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150324/31ca3c8e/attachment.sig>


More information about the systemd-devel mailing list