diff --git a/feeds/ucentral/ucentral-client/files/etc/init.d/ucentral b/feeds/ucentral/ucentral-client/files/etc/init.d/ucentral index 93884490a..41187e25e 100755 --- a/feeds/ucentral/ucentral-client/files/etc/init.d/ucentral +++ b/feeds/ucentral/ucentral-client/files/etc/init.d/ucentral @@ -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 diff --git a/feeds/ucentral/ucentral-client/files/etc/init.d/uhealth b/feeds/ucentral/ucentral-client/files/etc/init.d/uhealth index 1d4cebf98..07c443626 100755 --- a/feeds/ucentral/ucentral-client/files/etc/init.d/uhealth +++ b/feeds/ucentral/ucentral-client/files/etc/init.d/uhealth @@ -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