Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-07-01 | core: add support to run transient units in arbitrary slices | Lennart Poettering | |
2013-07-01 | core: allow setting of the description string for transient units | Lennart Poettering | |
2013-07-01 | core: add new "scope" unit type for making a unit of pre-existing processes | Lennart Poettering | |
"Scope" units are very much like service units, however with the difference that they are created from pre-existing processes, rather than processes that systemd itself forks off. This means they are generated programmatically via the bus API as transient units rather than from static configuration read from disk. Also, they do not provide execution-time parameters, as at the time systemd adds the processes to the scope unit they already exist and the parameters cannot be applied anymore. The primary benefit of this new unit type is to create arbitrary cgroups for worker-processes forked off an existing service. This commit also adds a a new mode to "systemd-run" to run the specified processes in a scope rather then a transient service. | |||
2013-06-28 | core: add transient units | Lennart Poettering | |
Transient units can be created via the bus API. They are configured via the method call parameters rather than on-disk files. They are subject to normal GC. Transient units currently may only be created for services (however, we will extend this), and currently only ExecStart= and the cgroup parameters can be configured (also to be extended). Transient units require a unique name, that previously had no configuration file on disk. A tool systemd-run is added that makes use of this functionality to run arbitrary command lines as transient services: $ systemd-run /bin/ping www.heise.de Will cause systemd to create a new transient service and run ping in it. |