# 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
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