From 98a7005c1b922bdcceb55af46d8d8aa6a07f40a1 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 1 Apr 2020 01:24:09 -0400 Subject: [PATCH] Add significant TimeoutSec to pvc-flush service This will stop systemd from killing the service in the middle of a flush or unflush operation, which completely defeats the purpose. 30 minutes was chosen as this is a very large but still somewhat manageable value, which should cover even a very large very loaded cluster with room to spare. --- 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 88d02093..5d9fb101 100644 --- a/node-daemon/pvc-flush.service +++ b/node-daemon/pvc-flush.service @@ -9,6 +9,7 @@ PartOf = pvc.target Type = oneshot RemainAfterExit = true WorkingDirectory = /usr/share/pvc +TimeoutSec = 30min ExecStartPre = /bin/sleep 30 ExecStart = /usr/bin/pvc -c local node unflush --wait ExecStop = /usr/bin/pvc -c local node flush --wait