mirror of
https://git.proxmox.com/git/pmg-api
synced 2025-12-28 00:16:45 +00:00
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:
parent
da29d81d3f
commit
b0f596edd4
1
debian/pmgdaemon.service
vendored
1
debian/pmgdaemon.service
vendored
@ -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
|
||||
|
||||
1
debian/pmgproxy.service
vendored
1
debian/pmgproxy.service
vendored
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user