Use RemainAfterExit to avoid pvc-flush from auto-stopping immediately. Use PartOf to tie services to the target itself. Use --wait on flush to avoid daemon stopping before flush is complete.
		
			
				
	
	
		
			18 lines
		
	
	
		
			429 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			429 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
 | 
						|
PartOf = pvcd.target
 | 
						|
 | 
						|
[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
 |