mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 17:42:41 +00:00
6cb4485 drop healthcheck from the client and move it to its own service Signed-off-by: John Crispin <john@phrozen.org>
24 lines
396 B
Bash
Executable File
24 lines
396 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
|
|
START=99
|
|
|
|
USE_PROCD=1
|
|
PROG=/usr/share/ucentral/state.uc
|
|
|
|
service_triggers() {
|
|
procd_add_reload_trigger ustats
|
|
}
|
|
|
|
start_service() {
|
|
. /lib/functions.sh
|
|
config_load 'ustats'
|
|
config_get interval 'stats' 'interval' 0
|
|
|
|
[ "$interval" -eq 0 ] || {
|
|
procd_open_instance
|
|
procd_set_param command "$PROG"
|
|
procd_set_param respawn 1 $interval 0
|
|
procd_close_instance
|
|
}
|
|
}
|