periodicstats: Align with bbfdm

This commit is contained in:
Vivek Kumar Dutta 2024-12-05 16:20:45 +05:30
parent 2c3a493457
commit 551033461a
2 changed files with 18 additions and 1 deletions

View file

@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=periodicstats PKG_NAME:=periodicstats
PKG_VERSION:=1.5.13 PKG_VERSION:=1.5.14
LOCAL_DEV:=0 LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1) ifneq ($(LOCAL_DEV),1)
@ -50,6 +50,7 @@ define Package/periodicstats/install
$(CP) ./files/* $(1)/ $(CP) ./files/* $(1)/
$(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/periodicstatsd $(1)/usr/sbin $(INSTALL_BIN) $(PKG_BUILD_DIR)/periodicstatsd $(1)/usr/sbin
$(BBFDM_REGISTER_SERVICES) ./bbfdm_service.json $(1) $(PKG_NAME)
$(BBFDM_INSTALL_MS_DM) $(PKG_BUILD_DIR)/bbf_plugin/libperiodicstats.so $(1) $(PKG_NAME) $(BBFDM_INSTALL_MS_DM) $(PKG_BUILD_DIR)/bbf_plugin/libperiodicstats.so $(1) $(PKG_NAME)
endef endef

View file

@ -0,0 +1,16 @@
{
"daemon": {
"enable": "1",
"service_name": "periodicstats",
"unified_daemon": false,
"services": [
{
"parent_dm": "Device.",
"object": "PeriodicStatistics"
}
],
"config": {
"loglevel": "3"
}
}
}