Tweaks to make it work better

This commit is contained in:
Joshua Boniface 2018-06-14 12:31:06 -04:00
parent 99efab5cdd
commit 91eb4eca08
1 changed files with 16 additions and 0 deletions

16
pvcd.service Normal file
View File

@ -0,0 +1,16 @@
# Parallel Virtual Cluster node daemon unit file
[Unit]
Description = Parallel Virtual Cluster node daemon
After = network-online.target libvirtd.service
[Service]
Type = simple
WorkingDirectory = /var/home/joshua/pvc
Environment = PYTHONUNBUFFERED=true
Environment = PVCD_CONFIG_FILE=/etc/pvcd.conf
#ExecStartPre = /bin/bash -c "GIT_SSH_COMMAND='/usr/bin/ssh -i /srv/git-deploy.key' /usr/bin/git pull"
ExecStart = /var/home/joshua/pvc/pvcd.py
Restart = on-failure
[Install]
WantedBy = multi-user.target