ucentral-client: cleanup health parameter

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2022-03-29 07:29:12 +02:00
parent 1a484c7f39
commit 396e2bd06c
2 changed files with 1 additions and 4 deletions

View File

@@ -32,8 +32,6 @@ start_service() {
config_get debug 'config' 'debug' 0
config_get insecure 'config' 'insecure' 0
interval=$(uci get ustats.health.interval)
procd_open_instance
procd_set_param command "$PROG"
[ -n "$serial" ] && procd_append_param command -S $serial
@@ -41,7 +39,6 @@ start_service() {
[ -n "$port" ] && procd_append_param command -P $port
[ "$debug" -eq 0 ] || procd_append_param command -d
[ "$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
procd_append_param command -f "$(cat /tmp/ucentral.version)"
procd_set_param respawn 3600 5 0

View File

@@ -18,7 +18,7 @@ service_triggers() {
start_service() {
. /lib/functions.sh
config_load 'ustats'
config_get interval 'health' 'interval' 0
config_get interval 'health' 'interval' 120
[ "$interval" -eq 0 ] || {
procd_open_instance