Add unit file for API client daemon

This commit is contained in:
Joshua Boniface 2019-07-05 22:25:07 -04:00
parent 0a96e26bc6
commit f5644e53bf
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
# Parallel Virtual Cluster API client daemon unit file
[Unit]
Description = Parallel Virtual Cluster API client daemon
After = network-online.target
[Service]
Type = simple
WorkingDirectory = /usr/share/pvc
Environment = PYTHONUNBUFFERED=true
Environment = PVC_CONFIG_FILE=/etc/pvc/pvc.yaml
ExecStart = /usr/share/pvc/api.py
Restart = on-failure
[Install]
WantedBy = multi-user.target