From a0ebc0d3a799b146bd0b55b7c3c8c89e93043c8d Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 1 Apr 2020 15:09:44 -0400 Subject: [PATCH] Add more robust requirements to pvc-flush service --- 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 5d9fb101..fc95780e 100644 --- a/node-daemon/pvc-flush.service +++ b/node-daemon/pvc-flush.service @@ -3,6 +3,7 @@ [Unit] Description = Parallel Virtual Cluster autoflush daemon After = pvcnoded.service +Requires = pvcnoded.service PartOf = pvc.target [Service] @@ -10,10 +11,10 @@ Type = oneshot RemainAfterExit = true WorkingDirectory = /usr/share/pvc TimeoutSec = 30min -ExecStartPre = /bin/sleep 30 +ExecStartPre = /bin/sleep 15 ExecStart = /usr/bin/pvc -c local node unflush --wait ExecStop = /usr/bin/pvc -c local node flush --wait -ExecStopPost = /bin/sleep 30 +ExecStopPost = /bin/sleep 5 [Install] WantedBy = pvc.target