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
17 lines
408 B
Desktop File
17 lines
408 B
Desktop File
# Parallel Virtual Cluster node daemon unit file
|
|
|
|
[Unit]
|
|
Description = Parallel Virtual Cluster node daemon
|
|
After = network-online.target libvirtd.service zookeeper.service
|
|
|
|
[Service]
|
|
Type = simple
|
|
WorkingDirectory = /usr/share/pvc
|
|
Environment = PYTHONUNBUFFERED=true
|
|
Environment = PVCD_CONFIG_FILE=/etc/pvc/pvcd.yaml
|
|
ExecStart = /usr/share/pvc/pvcd.py
|
|
Restart = on-failure
|
|
|
|
[Install]
|
|
WantedBy = pvcd.target
|