From 46603ce0f2109d062b061b75f93fa319fc6c063f Mon Sep 17 00:00:00 2001 From: Suvendhu Hansa Date: Tue, 16 Apr 2024 08:56:06 +0000 Subject: [PATCH] xmppc: 2.2.7 --- xmppc/Makefile | 2 +- xmppc/files/etc/init.d/xmppc | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/xmppc/Makefile b/xmppc/Makefile index 253392a1a..c38c48ca2 100755 --- a/xmppc/Makefile +++ b/xmppc/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=xmppc -PKG_VERSION:=2.2.6 +PKG_VERSION:=2.2.7 LOCAL_DEV:=0 ifneq ($(LOCAL_DEV),1) diff --git a/xmppc/files/etc/init.d/xmppc b/xmppc/files/etc/init.d/xmppc index 537c53af3..fc9e392d7 100755 --- a/xmppc/files/etc/init.d/xmppc +++ b/xmppc/files/etc/init.d/xmppc @@ -6,6 +6,13 @@ STOP=10 USE_PROCD=1 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() { local con_name=$(uci -q get xmpp.xmpp.conn_req_connection) local con_enable=$(uci -q get xmpp."${con_name}".enable)