[pmg-devel] [PATCH pmg-api 2/2] api-daemons: set oom-policy to continue

Stoiko Ivanov s.ivanov at proxmox.com
Wed Nov 24 17:04:09 CET 2021


OOMPolicy [0] defaults to stop - resulting in the complete daemon to
be killed.
Our Daemon class does start new workers automatically if it detects
that fewer than configured are running.

[0] systemd.service(5)

Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
 debian/pmgdaemon.service | 1 +
 debian/pmgproxy.service  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/debian/pmgdaemon.service b/debian/pmgdaemon.service
index f45986e..4e3ed85 100644
--- a/debian/pmgdaemon.service
+++ b/debian/pmgdaemon.service
@@ -10,6 +10,7 @@ After=ssh.service
 ExecStart=/usr/bin/pmgdaemon start
 ExecStop=/usr/bin/pmgdaemon stop
 ExecReload=/usr/bin/pmgdaemon restart
+OOMPolicy=continue
 PIDFile=/run/pmgdaemon.pid
 Restart=on-failure
 Type=forking
diff --git a/debian/pmgproxy.service b/debian/pmgproxy.service
index 247a241..7ffce87 100644
--- a/debian/pmgproxy.service
+++ b/debian/pmgproxy.service
@@ -12,6 +12,7 @@ After=ssh.service
 ExecStart=/usr/bin/pmgproxy start
 ExecStop=/usr/bin/pmgproxy stop
 ExecReload=/usr/bin/pmgproxy restart
+OOMPolicy=continue
 PIDFile=/run/pmgproxy/pmgproxy.pid
 Restart=on-failure
 Type=forking
-- 
2.30.2





More information about the pmg-devel mailing list