Rename "pvcd" to "pvcnoded", and "pvc-api" to "pvcapid" so names for the daemons are fully consistent. Update the names of the configuration files as well to match this new formatting. References #79
		
			
				
	
	
		
			21 lines
		
	
	
		
			790 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			790 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| # Install client binary to /usr/bin via symlink
 | |
| ln -s /usr/share/pvc/api.py /usr/bin/pvcapid
 | |
| 
 | |
| # Reload systemd's view of the units
 | |
| systemctl daemon-reload
 | |
| 
 | |
| # Restart the main daemon (or warn on first install)
 | |
| if systemctl is-active --quiet pvcapid.service; then
 | |
|     systemctl restart pvcapid.service
 | |
| else
 | |
|     echo "NOTE: The PVC client API daemon (pvcapid.service) has not been started; create a config file at /etc/pvc/pvcapid.yaml then start it."
 | |
| fi
 | |
| # Restart the worker daemon (or warn on first install)
 | |
| if systemctl is-active --quiet pvcapid-worker.service; then
 | |
|     systemctl restart pvcapid-worker.service
 | |
| else
 | |
|     echo "NOTE: The PVC provisioner worker daemon (pvcapid-worker.service) has not been started; create a config file at /etc/pvc/pvcapid.yaml then start it."
 | |
| fi
 |