Add node autoflush service and target

Add a systemd service to manage node flush/unflush, useful during
system startup and shutdown to avoid requiring administrator
intervention for this to occur. This is optional and the service is
not enabled by default, and the postinst script informs the
administrator of this.

Also adds a systemd target to collect the two service units together
and provide an easy way to flush+shutdown or startup+unflush the
entire PVC system.

Closes #28
This commit is contained in:
2019-05-23 22:38:45 -04:00
parent 69462d2c7b
commit 7c6132f7dd
6 changed files with 42 additions and 8 deletions

View File

@ -1,4 +1,6 @@
#!/bin/sh
# Disable the service
# Disable the services
systemctl disable pvc-flush.service
systemctl disable pvcd.service
systemctl disable pvcd.target