Joshua M. Boniface
4c5ce9b995
Use RemainAfterExit to avoid pvc-flush from auto-stopping immediately. Use PartOf to tie services to the target itself. Use --wait on flush to avoid daemon stopping before flush is complete.
17 lines
347 B
Desktop File
17 lines
347 B
Desktop File
# 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
|
|
ExecStart = /usr/bin/pvc node unflush
|
|
ExecStop = /usr/bin/pvc node flush --wait
|
|
|
|
[Install]
|
|
WantedBy = pvcd.target
|