Update package dectmngr

Also improve /etc/init.d/dect for service stop
This commit is contained in:
Yalu Zhang 2021-01-26 10:58:09 +01:00
parent 2b8c0a26ae
commit 9cfeee53e9
2 changed files with 8 additions and 7 deletions

View file

@ -7,14 +7,14 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=dectmngr
PKG_RELEASE:=1
PKG_VERSION:=1.0
PKG_RELEASE:=3
PKG_VERSION:=3.0.0
LOCAL_DEV=0
ifneq ($(LOCAL_DEV),1)
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/dectmngr.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=8514a9e70fd62a65f9230ed9ee096ba73acdfd61
PKG_SOURCE_VERSION:=e564ec0f7eb494fc522b5942ab0293a278478e48
endif
PKG_LICENSE:=GPLv2

View file

@ -14,11 +14,12 @@ PROG=/usr/sbin/dectmngr
# Ask dectmngr to exit nicely and wait for it to clean up, which is a slow process.
stop_and_wait_dectmngr() {
pidof $NAME || return
pidof $NAME && killall -q $NAME
killall -q $NAME || return
while pidof $NAME >/dev/null; do
sleep 1;
pidof $NAME && sleep 2 # wait for the process to stop gracefully
while pidof $NAME; do
killall -q -9 $NAME
sleep 1
done
}