From ae37afcf7579c5d5fdeff0673f1515c9049cfac3 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 23 May 2019 23:35:01 -0400 Subject: [PATCH] Wait 10 seconds when starting pvc-flush Without waiting the unflush will trigger too soon, before the daemon is fully ready and such it fails in odd ways. --- node-daemon/pvc-flush.service | 1 + 1 file changed, 1 insertion(+) diff --git a/node-daemon/pvc-flush.service b/node-daemon/pvc-flush.service index 814e19bf..aef39771 100644 --- a/node-daemon/pvc-flush.service +++ b/node-daemon/pvc-flush.service @@ -9,6 +9,7 @@ PartOf = pvcd.target Type = oneshot RemainAfterExit = true WorkingDirectory = /usr/share/pvc +ExecPreStart = /bin/sleep 10 ExecStart = /usr/bin/pvc node unflush ExecStop = /usr/bin/pvc node flush --wait