[pmg-devel] [PATCH pmg-api 1/2] api-daemons: restart on-failure

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


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 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 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





More information about the pmg-devel mailing list