mirror of
				https://github.com/retspen/webvirtcloud
				synced 2025-07-31 12:41:08 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
	
		
			320 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
	
		
			320 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/bin/bash
 | |
| set -e
 | |
| if [[ ! -e /var/log/nginx/error.log ]]; then
 | |
| 	# The Nginx log forwarder might be sleeping and waiting
 | |
| 	# until the error log becomes available. We restart it in
 | |
| 	# 1 second so that it picks up the new log file quickly.
 | |
| 	(sleep 1 && sv restart /etc/service/nginx-log-forwarder)
 | |
| fi
 | |
| exec /usr/sbin/nginx
 |