mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-16 17:01:37 +00:00
ucentral-client: update to latest HEAD
6cb4485 drop healthcheck from the client and move it to its own service Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
parent
0f13f7f5cd
commit
6e32e68302
@ -4,10 +4,10 @@ PKG_NAME:=ucentral-client
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_URL=https://github.com/blogic/ucentral-client.git
|
||||
PKG_MIRROR_HASH:=8347bcce354aad43f9e83d7926835dfe365d55cb062588c3162ee182cbb9d7c9
|
||||
PKG_MIRROR_HASH:=37a1b7393cf5d15dbcd4840d9ffb2b16bf5b43cdd5c0da955c744bfc10211cbc
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_DATE:=2022-01-10
|
||||
PKG_SOURCE_VERSION:=63eddd24ea0e12188c1c25b731c7675c9988c349
|
||||
PKG_SOURCE_VERSION:=6cb4485ab49c5ab9244fb55af9fd0e1801f154f4
|
||||
|
||||
PKG_LICENSE:=BSD-3-Clause
|
||||
PKG_MAINTAINER:=John Crispin <john@phrozen.org>
|
||||
|
||||
29
feeds/ucentral/ucentral-client/files/etc/init.d/uhealth
Executable file
29
feeds/ucentral/ucentral-client/files/etc/init.d/uhealth
Executable file
@ -0,0 +1,29 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=99
|
||||
|
||||
USE_PROCD=1
|
||||
PROG=/usr/share/ucentral/health.uc
|
||||
|
||||
boot() {
|
||||
# dummy stub to make sure health does not start before
|
||||
# a config is applied
|
||||
true
|
||||
}
|
||||
|
||||
service_triggers() {
|
||||
procd_add_reload_trigger ustats
|
||||
}
|
||||
|
||||
start_service() {
|
||||
. /lib/functions.sh
|
||||
config_load 'ustats'
|
||||
config_get interval 'health' 'interval' 0
|
||||
|
||||
[ "$interval" -eq 0 ] || {
|
||||
procd_open_instance
|
||||
procd_set_param command "$PROG"
|
||||
procd_set_param respawn 1 $interval 0
|
||||
procd_close_instance
|
||||
}
|
||||
}
|
||||
@ -20,9 +20,4 @@ start_service() {
|
||||
procd_set_param respawn 1 $interval 0
|
||||
procd_close_instance
|
||||
}
|
||||
|
||||
config_get interval 'health' 'interval' 0
|
||||
[ "$interval" -eq 0 ] || {
|
||||
ubus call ucentral config '{"health": '$interval' }'
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user