api-daemons: set oom-policy to continue

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>
This commit is contained in:
Stoiko Ivanov 2021-11-24 17:04:09 +01:00 committed by Thomas Lamprecht
parent da29d81d3f
commit b0f596edd4
2 changed files with 2 additions and 0 deletions

View 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

View 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