xmppc: 2.2.7

This commit is contained in:
Suvendhu Hansa 2024-04-16 08:56:06 +00:00 committed by Vivek Kumar Dutta
parent 3c6f3ab3bf
commit 46603ce0f2
2 changed files with 8 additions and 1 deletions

View file

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=xmppc PKG_NAME:=xmppc
PKG_VERSION:=2.2.6 PKG_VERSION:=2.2.7
LOCAL_DEV:=0 LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1) ifneq ($(LOCAL_DEV),1)

View file

@ -6,6 +6,13 @@ STOP=10
USE_PROCD=1 USE_PROCD=1
PROG="/usr/sbin/xmppc" PROG="/usr/sbin/xmppc"
stop_service() {
xmpp_running="$(ubus call service list '{"name":"xmppc"}' | jq ".xmppc.instances.instance1.running")"
if [ "${xmpp_running}" = "true" ]; then
procd_send_signal xmppc '*' SIGKILL
fi
}
start_service() { start_service() {
local con_name=$(uci -q get xmpp.xmpp.conn_req_connection) local con_name=$(uci -q get xmpp.xmpp.conn_req_connection)
local con_enable=$(uci -q get xmpp."${con_name}".enable) local con_enable=$(uci -q get xmpp."${con_name}".enable)