From: Stoiko Ivanov <s.ivanov@proxmox.com>
To: pmg-devel@lists.proxmox.com
Subject: [pmg-devel] [PATCH pmg-api 1/2] api-daemons: restart on-failure
Date: Wed, 24 Nov 2021 17:04:08 +0100 [thread overview]
Message-ID: <20211124160409.60966-2-s.ivanov@proxmox.com> (raw)
In-Reply-To: <20211124160409.60966-1-s.ivanov@proxmox.com>
user experience benefits when we restart pmgdaemon and pmgproxy if
they get terminated abnormally (now observed with oom-kills).
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 13da2b8..f45986e 100644
--- a/debian/pmgdaemon.service
+++ b/debian/pmgdaemon.service
@@ -11,6 +11,7 @@ ExecStart=/usr/bin/pmgdaemon start
ExecStop=/usr/bin/pmgdaemon stop
ExecReload=/usr/bin/pmgdaemon restart
PIDFile=/run/pmgdaemon.pid
+Restart=on-failure
Type=forking
[Install]
diff --git a/debian/pmgproxy.service b/debian/pmgproxy.service
index f978862..247a241 100644
--- a/debian/pmgproxy.service
+++ b/debian/pmgproxy.service
@@ -13,6 +13,7 @@ ExecStart=/usr/bin/pmgproxy start
ExecStop=/usr/bin/pmgproxy stop
ExecReload=/usr/bin/pmgproxy restart
PIDFile=/run/pmgproxy/pmgproxy.pid
+Restart=on-failure
Type=forking
[Install]
--
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 ` Stoiko Ivanov [this message]
2021-11-24 18:01 ` [pmg-devel] applied: [PATCH pmg-api 1/2] api-daemons: restart on-failure Thomas Lamprecht
2021-11-24 16:04 ` [pmg-devel] [PATCH pmg-api 2/2] api-daemons: set oom-policy to continue Stoiko Ivanov
2021-11-24 18:02 ` [pmg-devel] applied: " 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-2-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