]> git.proxmox.com Git - pve-manager.git/commit
service: add restart on-failure to pveproxy and pvedaemon
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 5 Jun 2019 06:47:53 +0000 (08:47 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 5 Jun 2019 06:48:01 +0000 (08:48 +0200)
commit4fd2027ea227d5826af4ea677c209d447ac90878
tree1577d44357b87e52d58579dadca4551fe97dda52
parent76bbe3e2d5c968e8c06948c9e1e2251b01207415
service: add restart on-failure to pveproxy and pvedaemon

This way they can cleanly exit (with a SIGTERM or systemctl stop) but
will get restarted if killed or they abort, but only for
StartLimitIntervalSec= time period with a total maximal count of
StartLimitBurst= retries.
See `man systemd.unit` for details, default are 10s total
restart retry period with at max 5 total retry counts, after that the
unit will placed in the failure state. So this is a best effort try
with no real downside.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
services/pvedaemon.service
services/pveproxy.service