]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/dbus-execute.c
core: fix support for transient resource limit properties
authorLennart Poettering <lennart@poettering.net>
Mon, 1 Feb 2016 20:37:28 +0000 (21:37 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 1 Feb 2016 21:18:16 +0000 (22:18 +0100)
commitcab2aca3e7dc9966eb9f45416f34729719f01dd4
tree628ed8287d73714e6889058b260e9c67843d02d5
parentfb8a9fc9b5ec53b13f9c2acad48b9a7f6579acfa
core: fix support for transient resource limit properties

Make sure we can properly process resource limit properties. Specifically, allow transient configuration of both the
soft and hard limit, the same way from the unit files. Previously, only the the hard rlimits could be configured but
they'd implicitly spill into the soft hard rlimits.

This also updates the client-side code to be able to parse hard/soft resource limit specifications. Since we need to
serialize two properties in bus_append_unit_property_assignment() now, the marshalling of the container around it is
now moved into the function itself. This has the benefit of shortening the calling code.

As a side effect this now beefs up the rlimit parser of "systemctl set-property" to understand time and disk sizes
where that's appropriate.
src/core/dbus-execute.c
src/nspawn/nspawn-register.c
src/run/run.c
src/shared/bus-util.c
src/systemctl/systemctl.c