]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: allow percent-based MemoryLimit= settings via systemctl set-property
authorLennart Poettering <lennart@poettering.net>
Wed, 8 Jun 2016 18:52:06 +0000 (20:52 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 14 Jun 2016 18:01:45 +0000 (20:01 +0200)
commitd58d600efdcbefa38247861a1df032d1a8fda606
treed85cd03eb618e4012801b9c3b215fafc54726515
parentd8cf2ac79b524d7784bccb428295ebc9c5e8548c
systemctl: allow percent-based MemoryLimit= settings via systemctl set-property

The unit files already accept relative, percent-based memory limit
specification, let's make sure "systemctl set-property" support this too.

Since we want the physical memory size of the destination machine to apply we
pass the percentage in a new set of properties that only exist for this
purpose, and can only be set.
src/core/dbus-cgroup.c
src/shared/bus-unit-util.c