mirror of
https://git.proxmox.com/git/pmg-api
synced 2025-12-28 02:23:28 +00:00
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>
22 lines
476 B
Desktop File
22 lines
476 B
Desktop File
[Unit]
|
|
Description=Proxmox Mail Gateway's unprivileged API and API-proxy daemon
|
|
Wants=pmgdaemon.service
|
|
Wants=ssh.service
|
|
Wants=remote-fs.target
|
|
After=network-online.target
|
|
After=pmgdaemon.service
|
|
After=remote-fs.target
|
|
After=ssh.service
|
|
|
|
[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
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|