Joshua M. Boniface
a44f134230
This caused a serious race condition, since the IPs managed by PVC had not yet come up, but Zookeeper was trying to start and bind to them, which of course failed. Remove these dependencies entirely - the daemon itself starts these services during initialization and they do not need to be started by systemd first.
20 lines
456 B
Desktop File
20 lines
456 B
Desktop File
# Parallel Virtual Cluster node daemon unit file
|
|
|
|
[Unit]
|
|
Description = Parallel Virtual Cluster node daemon
|
|
After = network-online.target
|
|
PartOf = pvc.target
|
|
|
|
[Service]
|
|
Type = simple
|
|
WorkingDirectory = /usr/share/pvc
|
|
Environment = PYTHONUNBUFFERED=true
|
|
Environment = PVCD_CONFIG_FILE=/etc/pvc/pvcnoded.yaml
|
|
ExecStartPre = /bin/sleep 2
|
|
ExecStart = /usr/share/pvc/pvcnoded.py
|
|
ExecStopPost = /bin/sleep 2
|
|
Restart = on-failure
|
|
|
|
[Install]
|
|
WantedBy = pvc.target
|