mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
Update package [ dectmngr ]
Change log path from /tmp to /var/log/dectmngr
This commit is contained in:
parent
083fd0376f
commit
2d8c76ba58
2 changed files with 6 additions and 5 deletions
|
|
@ -8,13 +8,13 @@ include $(TOPDIR)/rules.mk
|
|||
|
||||
PKG_NAME:=dectmngr
|
||||
PKG_RELEASE:=3
|
||||
PKG_VERSION:=3.0.9
|
||||
PKG_VERSION:=3.0.10
|
||||
|
||||
LOCAL_DEV=0
|
||||
ifneq ($(LOCAL_DEV),1)
|
||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/dectmngr.git
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_VERSION:=b742ea24a85a67e15270f5d66a5af28f25b653f9
|
||||
PKG_SOURCE_VERSION:=aba9bcef460a7c11df9096b853bf3d235e2c4a78
|
||||
PKG_MIRROR_HASH:=skip
|
||||
endif
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ STOP=12
|
|||
USE_PROCD=1
|
||||
NAME=dectmngr
|
||||
PROG=/usr/sbin/dectmngr
|
||||
LOG_PATH=/var/log/dectmngr
|
||||
|
||||
# Ask dectmngr to exit nicely and wait for it to clean up, which is a slow process.
|
||||
stop_and_wait_dectmngr() {
|
||||
|
|
@ -28,10 +29,8 @@ start_service() {
|
|||
|
||||
echo 1 > /sys/class/gpio/gpio14/value
|
||||
|
||||
rm -f /tmp/dect-cmbs.log /tmp/dect-cmbs_Host_log.txt /tmp/dectmngr.log
|
||||
|
||||
procd_open_instance
|
||||
procd_set_param command $PROG -comname ttyH0 -log /tmp/dect-cmbs.log
|
||||
procd_set_param command $PROG -comname ttyH0 -log $LOG_PATH/dect-cmbs.log
|
||||
procd_set_param respawn 6 2 3
|
||||
procd_set_param term_timeout 20
|
||||
procd_set_param triggers asterisk
|
||||
|
|
@ -58,6 +57,8 @@ service_triggers()
|
|||
boot() {
|
||||
echo 14 > /sys/class/gpio/export
|
||||
echo out > /sys/class/gpio/gpio14/direction
|
||||
|
||||
[ ! -d $LOG_PATH ] && mkdir -p $LOG_PATH
|
||||
start
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue