From da29d81d3f68e941267899029efc18d8f720ead3 Mon Sep 17 00:00:00 2001 From: Stoiko Ivanov Date: Wed, 24 Nov 2021 17:04:08 +0100 Subject: [PATCH] api-daemons: restart on-failure user experience benefits when we restart pmgdaemon and pmgproxy if they get terminated abnormally (now observed with oom-kills). Signed-off-by: Stoiko Ivanov --- 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.39.5