mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Fix haproxy-tcp init script
This commit is contained in:
		
							parent
							
								
									bd80d0967f
								
							
						
					
					
						commit
						03b8e9a6cf
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -63,6 +63,8 @@ start_instance() {
 | 
			
		|||
	    mode tcp
 | 
			
		||||
	    retries ${retries:-2}
 | 
			
		||||
	    timeout connect ${timeout:-1000}
 | 
			
		||||
	    timeout client ${timeout:-1000}
 | 
			
		||||
	    timeout server ${timeout:-1000}
 | 
			
		||||
 | 
			
		||||
	listen admin_stats
 | 
			
		||||
	    bind 0.0.0.0:${admin_stats:-7777}
 | 
			
		||||
| 
						 | 
				
			
			@ -91,7 +93,7 @@ EOF
 | 
			
		|||
	procd_open_instance
 | 
			
		||||
	procd_set_param command ${PROG} \
 | 
			
		||||
		-q -D -f /var/etc/$PROG_NAME.cfg \
 | 
			
		||||
		-p /var/run/${PROG}.${PIDCOUNT}.pid
 | 
			
		||||
		-p /var/run/${PROG_NAME}.${PIDCOUNT}.pid
 | 
			
		||||
	
 | 
			
		||||
	procd_set_param respawn 0 30 0
 | 
			
		||||
	procd_set_param stdout 1
 | 
			
		||||
| 
						 | 
				
			
			@ -106,5 +108,5 @@ start_service() {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
service_triggers() {
 | 
			
		||||
	procd_add_reload_trigger haproxy-tcp general
 | 
			
		||||
	procd_add_reload_trigger haproxy-tcp
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue