summaryrefslogtreecommitdiff
path: root/src/run
Commit message (Collapse)AuthorAge
* systemd-run: don't print error messages twiceLennart Poettering2014-03-05
|
* systemd-run: make sure --nice=, --uid=, --gid=, --setenv= also work in ↵Lennart Poettering2014-03-05
| | | | --scope mode
* systemd-run: add some extra safety checksLennart Poettering2014-03-05
|
* systemd-run: add new --property= switch that can set arbitrary properties ↵Lennart Poettering2014-03-05
| | | | | | | | for the unit that is created The code for parsing these properties is shared with "systemctl set-property", which means all the resource control settings are immediately available.
* api: in constructor function calls, always put the returned object pointer ↵Lennart Poettering2014-02-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | first (or second) Previously the returned object of constructor functions where sometimes returned as last, sometimes as first and sometimes as second parameter. Let's clean this up a bit. Here are the new rules: 1. The object the new object is derived from is put first, if there is any 2. The object we are creating will be returned in the next arguments 3. This is followed by any additional arguments Rationale: For functions that operate on an object we always put that object first. Constructors should probably not be too different in this regard. Also, if the additional parameters might want to use varargs which suggests to put them last. Note that this new scheme only applies to constructor functions, not to all other functions. We do give a lot of freedom for those. Note that this commit only changes the order of the new functions we added, for old ones we accept the wrong order and leave it like that.
* nspawn: add --quiet switch for turning off any output noiseLennart Poettering2014-02-06
|
* core: allow User=, Group=, Nice=, Environment=, Type= to be passed when ↵Lennart Poettering2014-02-05
| | | | creating a transient service
* run: drop mistakenly committed test codeLennart Poettering2014-01-31
|
* core: introduce new stop protocol for unit scopesLennart Poettering2014-01-31
| | | | | | | | | By specifiy a Controller property when creating the scope a client can specify a bus name that will be notified with a RequestStop bus signal when the scope has been asked to shut down, instead of sending SIGTERM to the scope processes themselves. https://bugzilla.redhat.com/show_bug.cgi?id=1032695
* Use enums to make it obvious what boolean params meanZbigniew Jędrzejewski-Szmek2013-12-26
| | | | Suggested-by: Russ Allbery <rra@debian.org>
* systemctl: allow globbing in commands which take multiple unit namesZbigniew Jędrzejewski-Szmek2013-12-26
|
* logind,machined,run: properly invoke StartTransientUnit() bus callLennart Poettering2013-11-21
|
* bus: rename sd_bus_send_with_reply_and_block() to sd_bus_call()Lennart Poettering2013-11-12
| | | | | | The call is one of the most important ones we expose, where we place major emphasis on. We should make sure to give it a short, memorable name.
* bus: port remaining code over to use bus_error_message()Lennart Poettering2013-11-08
|
* localectl: port over to bus_log_create_error()Lennart Poettering2013-11-08
|
* clients: unify how we invoke getopt_long()Lennart Poettering2013-11-06
| | | | | Among other things this makes sure we always expose a --version command and show it in the help texts.
* run: support --system to match other commands, even if redundantLennart Poettering2013-11-06
|
* run: add support for executing commands remotely via SSH or in a containerLennart Poettering2013-10-30
| | | | | Also, unify the transport logic a bit, since we reuse the same scheme in many of our client tools.
* timedated: use libsystemd-bus instead of libdbus for bus communicationLennart Poettering2013-10-16
| | | | | | | | | | | | | | | Among other things this also adds a few things necessary for the change: - Considerably more powerful error returning APIs in libsystemd-bus - Adapter for connecting an sd_bus to an sd_event - As I reworked the PolicyKit logic to the new library I also made it asynchronous, so that PolicyKit requests of one user cannot block out another user anymore. - We always use the macro names for common bus error. That way it is harder to mistype them since the compiler will notice
* Fix two compiler warningsZbigniew Jędrzejewski-Szmek2013-09-09
|
* run: allow non-absolute paths as commandZbigniew Jędrzejewski-Szmek2013-09-09
|
* core: open up SendSIGHUP property for transient unitsLennart Poettering2013-07-30
|
* core: allow setting RemainAfterExit= for transient servicesLennart Poettering2013-07-26
|
* man: extend systemd-run man page a littleLennart Poettering2013-07-19
|
* core: add support to run transient units in arbitrary slicesLennart Poettering2013-07-01
|
* core: allow setting of the description string for transient unitsLennart Poettering2013-07-01
|
* core: add new "scope" unit type for making a unit of pre-existing processesLennart Poettering2013-07-01
| | | | | | | | | | | | | | | | | "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.
* core: add transient unitsLennart Poettering2013-06-28
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.