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

index f45986e494e97c02ffe782aaaf763fde4c13160d..4e3ed85d9dd2a66bf8762851890cf1d623775797 100644 (file)
@@ -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
index 247a241199ccead931ecee0f64247d6148bbc7a7..7ffce8728f74149e263aedcd37c6369fc1087fee 100644 (file)
@@ -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