diff options
author | Mark Laws <mdl@60hz.org> | 2022-11-14 21:48:09 +0900 |
---|---|---|
committer | Mark Laws <mdl@60hz.org> | 2022-11-24 19:41:28 +0900 |
commit | 5fa098357e0ea9f05b00ed5b04a36ef9f64037db (patch) | |
tree | e7ade7b077e36a40e49837d6929f601ef52ae2db /src/shared/bus-unit-util.c | |
parent | 09cd639a59fec13d80ac8fce2d671d088d8cca9f (diff) | |
download | systemd-5fa098357e0ea9f05b00ed5b04a36ef9f64037db.tar.gz |
systemd: Support OOMPolicy in scope units
Closes #25376.
Diffstat (limited to 'src/shared/bus-unit-util.c')
-rw-r--r-- | src/shared/bus-unit-util.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |