[pve-devel] [PATCH manager] pve-daily-update.service: add Wants/After for pve-cluster.service

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Mar 23 11:39:49 CET 2018


Else systemd may start this to early on boot, before pve-cluster is
up and ready, if it missed and update because the node was offline.
This fails the services as it cannot do any IPC with pmxcfs

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 bin/init.d/pve-daily-update.service | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bin/init.d/pve-daily-update.service b/bin/init.d/pve-daily-update.service
index f174241f..9c6d2aba 100644
--- a/bin/init.d/pve-daily-update.service
+++ b/bin/init.d/pve-daily-update.service
@@ -2,8 +2,9 @@
 Description=Daily PVE download activities
 After=network-online.target
 Wants=network-online.target
+Wants=pve-cluster.service
+After=pve-cluster.service
 
 [Service]
 Type=oneshot
 ExecStart=/usr/bin/pveupdate
-
-- 
2.14.2





More information about the pve-devel mailing list