pvc/node-daemon/pvc-flush.service

18 lines
376 B
SYSTEMD
Raw Normal View History

# Parallel Virtual Cluster autoflush daemon
[Unit]
Description = Parallel Virtual Cluster autoflush daemon
After = pvcd.service
PartOf = pvcd.target
[Service]
Type = oneshot
RemainAfterExit = true
WorkingDirectory = /usr/share/pvc
ExecPreStart = /bin/sleep 10
ExecStart = /usr/bin/pvc node unflush
ExecStop = /usr/bin/pvc node flush --wait
[Install]
WantedBy = pvcd.target