Files
wlan-ap/feeds/ucentral/ucentral-client/files/etc/init.d/ustats
John Crispin 6e32e68302 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>
2022-03-25 16:08:34 +01:00

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
}
}