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

Lennart Poettering lennart at poettering.net
Wed Apr 8 10:31:00 PDT 2015


On Mon, 23.03.15 17:49, Ivan Shapovalov (intelfx100 at gmail.com) wrote:

> 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.
> 
> That is, ..?
> How can I create a unit that will be removed as soon as it's
> stopped?

Normally all services are GC'ed the moment they are fully stopped and
didn't fail. That means you can simply use systemd-run, and they will
go away automatically after termination unless they fail...

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list