From: Chen Hanxiao <chenhanx...@cn.fujitsu.com> Add support for systemctl to set limit of memory+Swap usage.
Signed-off-by: Chen Hanxiao <chenhanx...@cn.fujitsu.com> --- src/systemctl/systemctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 57e5bb9..116e0b5 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -3657,7 +3657,8 @@ static int append_assignment(DBusMessageIter *iter, const char *assignment) { !dbus_message_iter_append_basic(&sub, DBUS_TYPE_BOOLEAN, &b)) return log_oom(); - } else if (streq(field, "MemoryLimit") || streq(field, "MemorySoftLimit")) { + } else if (streq(field, "MemoryLimit") || streq(field, "MemorySWLimit") || + streq(field, "MemorySoftLimit")) { off_t bytes; uint64_t u; -- 1.8.2.1 _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel