From 5fa098357e0ea9f05b00ed5b04a36ef9f64037db Mon Sep 17 00:00:00 2001 From: Mark Laws Date: Mon, 14 Nov 2022 21:48:09 +0900 Subject: systemd: Support OOMPolicy in scope units Closes #25376. --- src/shared/bus-unit-util.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/shared/bus-unit-util.c') diff --git a/src/shared/bus-unit-util.c b/src/shared/bus-unit-util.c index b850a28e85..922011eccd 100644 --- a/src/shared/bus-unit-util.c +++ b/src/shared/bus-unit-util.c @@ -2142,6 +2142,9 @@ static int bus_append_scope_property(sd_bus_message *m, const char *field, const if (STR_IN_SET(field, "User", "Group")) return bus_append_string(m, field, eq); + if (streq(field, "OOMPolicy")) + return bus_append_string(m, field, eq); + return 0; } -- cgit v1.2.1