periodicstats: Fix service reloadwq

This commit is contained in:
Vivek Kumar Dutta 2024-04-11 10:25:16 +05:30
parent 60b009b24c
commit 49b4528cc9
3 changed files with 6 additions and 8 deletions

View file

@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=periodicstats
PKG_VERSION:=1.5.3
PKG_VERSION:=1.5.4
LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1)

View file

@ -1,4 +1,4 @@
config globals 'globals'
option enable '0'
option enable '1'
option base_interval '5'

View file

@ -17,13 +17,11 @@ start_service() {
bbfdm_add_service "bbfdm.periodicstats" "${PERIODICSTATS_JSON_INPUT}"
if [ "${enable}" -ne "1" ]; then
return 0;
fi
procd_open_instance periodicstatsd
procd_set_param command ${PROG}
procd_set_param respawn
if [ "${enable}" -eq "1" ]; then
procd_set_param command ${PROG}
procd_set_param respawn
fi
procd_close_instance
}