]> git.proxmox.com Git - pmg-api.git/commitdiff
api-daemons: restart on-failure
authorStoiko Ivanov <s.ivanov@proxmox.com>
Wed, 24 Nov 2021 16:04:08 +0000 (17:04 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 24 Nov 2021 17:59:46 +0000 (18:59 +0100)
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
debian/pmgproxy.service

index 13da2b87224aeea9ebfccd4e7c72c4d13b3d2637..f45986e494e97c02ffe782aaaf763fde4c13160d 100644 (file)
@@ -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]
index f97886299c4fc23887bdd688a2e707f8891a9ee8..247a241199ccead931ecee0f64247d6148bbc7a7 100644 (file)
@@ -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]