Skip to content

Commit 337c4c1

Browse files
committed
bootstrap: install systemd-oomd on Debian
1 parent b2fc0de commit 337c4c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

terraform/bootstrap/bootstrap.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,8 @@ def ensure_lowram_tuning(os_info: dict[str, str], swap_swappiness: int) -> bool:
270270
if service_exists("systemd-journald"):
271271
run("systemctl restart systemd-journald", check=False, quiet=True, log_ok=False)
272272

273+
if not service_exists("systemd-oomd"):
274+
run("apt-get install -y systemd-oomd", check=False, quiet=True, log_ok=False)
273275
if service_exists("systemd-oomd"):
274276
run("systemctl enable --now systemd-oomd", check=False, quiet=True, log_ok=False)
275277

0 commit comments

Comments
 (0)