Otherwise, systemd kills networking before the node daemon fully stops and it goes into "dead" status, which is super annoying.
		
			
				
	
	
		
			20 lines
		
	
	
		
			474 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			474 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
| # Parallel Virtual Cluster node daemon unit file
 | |
| 
 | |
| [Unit]
 | |
| Description = Parallel Virtual Cluster node daemon
 | |
| After = network-online.target zookeeper.service
 | |
| 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
 |