obuspa: updated default instance cache time to 10 mins

This commit is contained in:
Vivek Kumar Dutta 2024-09-24 18:28:33 +05:30
parent 1a167f8854
commit 5d03bbfd20
3 changed files with 9 additions and 1 deletions

View file

@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=obuspa
PKG_VERSION:=9.0.0.1
PKG_VERSION:=9.0.0.2
LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1)

View file

@ -5,6 +5,9 @@ config obuspa 'global'
option log_level '3'
option prototrace '0'
option db_file '/etc/obuspa/usp.db'
option max_group_sep '2'
option ipc_timeout '30'
option max_cache_time '600'
option dm_caching_exclude '/etc/obuspa/dmcaching_exclude.json'
#option trust_cert '/etc/obuspa/ca.pem'
#option client_cert '/etc/obuspa/client.pem'

View file

@ -1,5 +1,9 @@
#!/bin/sh
log() {
echo "$*"|logger -t obuspa.hotplug -p debug
}
get_access_role() {
local mode lan_proto
@ -34,6 +38,7 @@ fi
[ "$ACTION" = "ifup" -a "${intf}" = "${INTERFACE}" ] && {
sleep 1
log "Sending WakeUp event, due to [${ACTION}] on ${intf}"
obuspa -c event Device.LocalAgent.WakeUp!
}