[pve-devel] [PATCH manager] services: add restart on-failure to pvescheduler, pvestatd and spiceproxy

Fiona Ebner f.ebner at proxmox.com
Mon May 26 10:45:35 CEST 2025


Same rationale as 4fd2027e ("service: add restart on-failure to
pveproxy and pvedaemon") which added the setting for the pveproxy and
pvedaemon services.

Suggested for pvestatd in the community forum:
https://forum.proxmox.com/threads/165597/post-773210

Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---
 services/pvescheduler.service | 1 +
 services/pvestatd.service     | 1 +
 services/spiceproxy.service   | 1 +
 3 files changed, 3 insertions(+)

diff --git a/services/pvescheduler.service b/services/pvescheduler.service
index 6d0d0985..8d78f3b1 100644
--- a/services/pvescheduler.service
+++ b/services/pvescheduler.service
@@ -13,6 +13,7 @@ ExecReload=/usr/bin/pvescheduler restart
 PIDFile=/var/run/pvescheduler.pid
 KillMode=process
 Type=forking
+Restart=on-failure
 
 [Install]
 WantedBy=multi-user.target
diff --git a/services/pvestatd.service b/services/pvestatd.service
index d7db50f6..ed6339eb 100644
--- a/services/pvestatd.service
+++ b/services/pvestatd.service
@@ -10,6 +10,7 @@ ExecStop=/usr/bin/pvestatd stop
 ExecReload=/usr/bin/pvestatd restart
 PIDFile=/run/pvestatd.pid
 Type=forking
+Restart=on-failure
 
 [Install]
 WantedBy=multi-user.target
diff --git a/services/spiceproxy.service b/services/spiceproxy.service
index e800be81..bda9e8f9 100644
--- a/services/spiceproxy.service
+++ b/services/spiceproxy.service
@@ -10,6 +10,7 @@ ExecStop=/usr/bin/spiceproxy stop
 ExecReload=/usr/bin/spiceproxy restart
 PIDFile=/run/pveproxy/spiceproxy.pid
 Type=forking
+Restart=on-failure
 
 [Install]
 WantedBy=multi-user.target
-- 
2.39.5





More information about the pve-devel mailing list