From: Stoiko Ivanov <s.ivanov@proxmox.com>
To: pmg-devel@lists.proxmox.com
Subject: [pmg-devel] [PATCH pmg-api 2/2] api-daemons: set oom-policy to continue
Date: Wed, 24 Nov 2021 17:04:09 +0100 [thread overview]
Message-ID: <20211124160409.60966-3-s.ivanov@proxmox.com> (raw)
In-Reply-To: <20211124160409.60966-1-s.ivanov@proxmox.com>
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@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
next prev parent reply other threads:[~2021-11-24 16:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-24 16:04 [pmg-devel] [PATCH pmg-api 0/2] improve restart behavior of api daemons Stoiko Ivanov
2021-11-24 16:04 ` [pmg-devel] [PATCH pmg-api 1/2] api-daemons: restart on-failure Stoiko Ivanov
2021-11-24 18:01 ` [pmg-devel] applied: " Thomas Lamprecht
2021-11-24 16:04 ` Stoiko Ivanov [this message]
2021-11-24 18:02 ` [pmg-devel] applied: [PATCH pmg-api 2/2] api-daemons: set oom-policy to continue Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211124160409.60966-3-s.ivanov@proxmox.com \
--to=s.ivanov@proxmox.com \
--cc=pmg-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox