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.
20 lines
451 B
Desktop File
20 lines
451 B
Desktop File
# Parallel Virtual Cluster autoflush daemon
|
|
|
|
[Unit]
|
|
Description = Parallel Virtual Cluster autoflush daemon
|
|
After = pvcnoded.service
|
|
PartOf = pvc.target
|
|
|
|
[Service]
|
|
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
|
|
ExecStopPost = /bin/sleep 30
|
|
|
|
[Install]
|
|
WantedBy = pvc.target
|