mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-11-03 20:07:59 +00:00 
			
		
		
		
	ucentral-client: cleanup health parameter
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
		@@ -32,8 +32,6 @@ start_service() {
 | 
				
			|||||||
	config_get debug 'config' 'debug' 0
 | 
						config_get debug 'config' 'debug' 0
 | 
				
			||||||
	config_get insecure 'config' 'insecure' 0
 | 
						config_get insecure 'config' 'insecure' 0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	interval=$(uci get ustats.health.interval)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	procd_open_instance
 | 
						procd_open_instance
 | 
				
			||||||
	procd_set_param command "$PROG"
 | 
						procd_set_param command "$PROG"
 | 
				
			||||||
	[ -n "$serial" ] && procd_append_param command -S $serial
 | 
						[ -n "$serial" ] && procd_append_param command -S $serial
 | 
				
			||||||
@@ -41,7 +39,6 @@ start_service() {
 | 
				
			|||||||
	[ -n "$port" ] && procd_append_param command -P $port
 | 
						[ -n "$port" ] && procd_append_param command -P $port
 | 
				
			||||||
	[ "$debug" -eq 0 ] || procd_append_param command -d
 | 
						[ "$debug" -eq 0 ] || procd_append_param command -d
 | 
				
			||||||
	[ "$insecure" -eq 0 ] || procd_append_param command -i
 | 
						[ "$insecure" -eq 0 ] || procd_append_param command -i
 | 
				
			||||||
	[ -z "$interval" ] || procd_append_param command -H $interval
 | 
					 | 
				
			||||||
	[ -z "$(mount | grep 'tmpfs on / type tmpfs')" ] || procd_append_param command -r
 | 
						[ -z "$(mount | grep 'tmpfs on / type tmpfs')" ] || procd_append_param command -r
 | 
				
			||||||
	procd_append_param command -f "$(cat /tmp/ucentral.version)"
 | 
						procd_append_param command -f "$(cat /tmp/ucentral.version)"
 | 
				
			||||||
	procd_set_param respawn 3600 5 0
 | 
						procd_set_param respawn 3600 5 0
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -18,7 +18,7 @@ service_triggers() {
 | 
				
			|||||||
start_service() {
 | 
					start_service() {
 | 
				
			||||||
	. /lib/functions.sh
 | 
						. /lib/functions.sh
 | 
				
			||||||
	config_load 'ustats'
 | 
						config_load 'ustats'
 | 
				
			||||||
	config_get interval 'health' 'interval' 0
 | 
						config_get interval 'health' 'interval' 120
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	[ "$interval" -eq 0 ] || {
 | 
						[ "$interval" -eq 0 ] || {
 | 
				
			||||||
		procd_open_instance
 | 
							procd_open_instance
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user