mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
xmppc: 2.2.7
This commit is contained in:
parent
3c6f3ab3bf
commit
46603ce0f2
2 changed files with 8 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue