helper: fix reload code
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		@@ -14,7 +14,9 @@ daemon() {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
reload() {
 | 
					reload() {
 | 
				
			||||||
	pid=$(pidof 'gunicorn: master [morss]') # NB. requires python-setproctitle
 | 
						pid=$(pidof 'gunicorn: master [morss]' || true)
 | 
				
			||||||
 | 
							# NB. requires python-setproctitle
 | 
				
			||||||
 | 
							# `|| true` due to `set -e`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if [ -z "$pid" ]; then
 | 
						if [ -z "$pid" ]; then
 | 
				
			||||||
		# if gunicorn is not currently running
 | 
							# if gunicorn is not currently running
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user