From 2b41b88b448f8462b44a8d710517b480ba84ef83 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 10 Sep 2019 21:05:08 +0530 Subject: [PATCH] systemd: Bump Swap limit to 1 systemd now ignores 0 values for these. Signed-off-by: Harsh Shandilya --- systemd_units/caddy.service | 2 +- systemd_units/gitea.service | 2 +- systemd_units/mirror-bot-2.service | 2 +- systemd_units/mirror-bot.service | 2 +- systemd_units/uno-bot.service | 2 +- systemd_units/walls-bot-2.service | 2 +- systemd_units/walls-bot.service | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/systemd_units/caddy.service b/systemd_units/caddy.service index 5d6ce79..b8f0e30 100644 --- a/systemd_units/caddy.service +++ b/systemd_units/caddy.service @@ -27,7 +27,7 @@ NoNewPrivileges=true CPUWeight=10 CPUQuota=10% IOWeight=20 -MemorySwapMax=0 +MemorySwapMax=1 [Install] WantedBy=multi-user.target diff --git a/systemd_units/gitea.service b/systemd_units/gitea.service index 37869a6..7f990de 100644 --- a/systemd_units/gitea.service +++ b/systemd_units/gitea.service @@ -20,7 +20,7 @@ AmbientCapabilities=CAP_NET_BIND_SERVICE CPUWeight=20 CPUQuota=25% IOWeight=20 -MemorySwapMax=0 +MemorySwapMax=1 [Install] WantedBy=multi-user.target diff --git a/systemd_units/mirror-bot-2.service b/systemd_units/mirror-bot-2.service index c6dcd2e..8a1a4c8 100644 --- a/systemd_units/mirror-bot-2.service +++ b/systemd_units/mirror-bot-2.service @@ -19,7 +19,7 @@ ProtectSystem=full CPUWeight=10 CPUQuota=10% IOWeight=20 -MemorySwapMax=0 +MemorySwapMax=1 [Install] WantedBy=multi-user.target diff --git a/systemd_units/mirror-bot.service b/systemd_units/mirror-bot.service index 9bece42..ee04792 100644 --- a/systemd_units/mirror-bot.service +++ b/systemd_units/mirror-bot.service @@ -19,7 +19,7 @@ ProtectSystem=full CPUWeight=10 CPUQuota=10% IOWeight=20 -MemorySwapMax=0 +MemorySwapMax=1 [Install] WantedBy=multi-user.target diff --git a/systemd_units/uno-bot.service b/systemd_units/uno-bot.service index 6c18b89..c644431 100644 --- a/systemd_units/uno-bot.service +++ b/systemd_units/uno-bot.service @@ -18,7 +18,7 @@ ProtectSystem=full CPUWeight=10 CPUQuota=10% IOWeight=20 -MemorySwapMax=0 +MemorySwapMax=1 [Install] WantedBy=multi-user.target diff --git a/systemd_units/walls-bot-2.service b/systemd_units/walls-bot-2.service index 1ecaa5d..e6b1454 100644 --- a/systemd_units/walls-bot-2.service +++ b/systemd_units/walls-bot-2.service @@ -18,7 +18,7 @@ ProtectSystem=full CPUWeight=10 CPUQuota=10% IOWeight=20 -MemorySwapMax=0 +MemorySwapMax=1 [Install] WantedBy=multi-user.target diff --git a/systemd_units/walls-bot.service b/systemd_units/walls-bot.service index 38fbc93..9fb6b74 100644 --- a/systemd_units/walls-bot.service +++ b/systemd_units/walls-bot.service @@ -18,7 +18,7 @@ ProtectSystem=full CPUWeight=10 CPUQuota=10% IOWeight=20 -MemorySwapMax=0 +MemorySwapMax=1 [Install] WantedBy=multi-user.target