From 14e9ba892c61bd10e6589056388826c81a0bd2a8 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 24 May 2019 01:23:18 -0400 Subject: [PATCH] Wait on both sides for 30s Still finding issues with the flush --- node-daemon/pvc-flush.service | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/node-daemon/pvc-flush.service b/node-daemon/pvc-flush.service index aef39771..36c71be1 100644 --- a/node-daemon/pvc-flush.service +++ b/node-daemon/pvc-flush.service @@ -9,9 +9,10 @@ PartOf = pvcd.target Type = oneshot RemainAfterExit = true WorkingDirectory = /usr/share/pvc -ExecPreStart = /bin/sleep 10 -ExecStart = /usr/bin/pvc node unflush +ExecPreStart = /bin/sleep 30 +ExecStart = /usr/bin/pvc node unflush --wait ExecStop = /usr/bin/pvc node flush --wait +ExecPostStop = /bin/sleep 30 [Install] WantedBy = pvcd.target