[systemd-devel] Group of temporary but related units?

Lennart Poettering lennart at poettering.net
Mon May 29 12:38:51 UTC 2017


On Sun, 28.05.17 17:13, Benno Fünfstück (benno.fuenfstueck at gmail.com) wrote:

> Hey list,
> 
> what would be a good way to manage temporary development environments with
> systemd? For example, if I quickly want to spawn up an environment where my
> service + perhaps some db or a queue or some other services are running. It
> would be nice to reuse systemd's service management capabiltiies for this.
> Or should I really write two sets of unit files for my services, one for
> spinning up a testing / development environment using some other
> supervision suite + another one for deployment with systemd?

That sounds like an option.

You can also use "systemd-run" to transiently run a program as a
service without having to create a unit file for it. It permits you to
put together a service ad-hoc on the command line without modifying
the system.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list