mirror of
https://git.proxmox.com/git/pmg-api
synced 2026-01-01 07:16:20 +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>
20 lines
416 B
Desktop File
20 lines
416 B
Desktop File
[Unit]
|
|
Description=Proxmox Mail Gateway's privileged loopback API daemon
|
|
Wants=ssh.service
|
|
Wants=remote-fs.target
|
|
After=network-online.target
|
|
After=remote-fs.target
|
|
After=ssh.service
|
|
|
|
[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
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|