From 615a4ae9d7ac923dc131bb036115e989d30ffcd8 Mon Sep 17 00:00:00 2001 From: Othmar Truniger Date: Tue, 17 Dec 2019 15:49:15 +0100 Subject: [PATCH] knxd: adjust startup files to better comply with procd Signed-off-by: Othmar Truniger --- net/knxd/Makefile | 2 +- net/knxd/files/knxd.config | 4 +++- net/knxd/files/knxd.ini | 1 - net/knxd/files/knxd.init | 12 +++++------- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/net/knxd/Makefile b/net/knxd/Makefile index a10236e20..9d7c8818e 100644 --- a/net/knxd/Makefile +++ b/net/knxd/Makefile @@ -12,7 +12,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=knxd PKG_VERSION:=0.14.29 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/knxd/knxd/tar.gz/$(PKG_VERSION)? diff --git a/net/knxd/files/knxd.config b/net/knxd/files/knxd.config index 81dacaabd..b4cfa4e3d 100644 --- a/net/knxd/files/knxd.config +++ b/net/knxd/files/knxd.config @@ -8,7 +8,9 @@ config daemon args #enable the EIBnet/IP server to answer discovery and description requests (SEARCH, DESCRIPTION) option Discovery 1 # EIBADDR set our EIB address to EIBADDR (default 0.0.1) - option eibaddr "0.0.2" + option eibaddr "0.0.1" + # CLIENTADDRS set client addrs + option client_addrs "0.0.2:10" # LEVEL set error level option error 0 # PORT listen at TCP port PORT (default 6720) diff --git a/net/knxd/files/knxd.ini b/net/knxd/files/knxd.ini index b4193dd5f..b676e1c07 100644 --- a/net/knxd/files/knxd.ini +++ b/net/knxd/files/knxd.ini @@ -7,7 +7,6 @@ driver = ip name = mcast:knxd [main] addr = 0.0.1 -background = true client-addrs = 0.0.2:10 connections = A.tcp,server,B.ip [server] diff --git a/net/knxd/files/knxd.init b/net/knxd/files/knxd.init index 7eafebbb7..5179cf456 100644 --- a/net/knxd/files/knxd.init +++ b/net/knxd/files/knxd.init @@ -36,7 +36,7 @@ start_service() { append_parm args client_addrs "client-addrs" "0.0.2:10" append_parm args layer2 "layer2" append_bool args GroupCache "GroupCache" 0 - append_parm args daemon "daemon" "/var/log/knxd.log" + #append_parm args daemon "daemon" "/var/log/knxd.log" append_parm args error "error" # "5" append_parm args listen_tcp "listen-tcp" "6720" append_parm args Interface "Interface" # "eth0" @@ -56,18 +56,16 @@ start_service() { if [ "$url" == "usb:" ] ; then url="usb:""$(findknxusb | tail -n1 | sed -e 's/device: \([0-9]:[0-9]:[0-9]\):[0-9].*/\1/')" fi - echo "/usr/lib/knxd_args $params $url" - /usr/lib/knxd_args $params $url > /tmp/etc/knxd.ini + echo "/usr/lib/knxd_args $params -b $url" + /usr/lib/knxd_args $params -b $url > /tmp/etc/knxd.ini procd_open_instance procd_set_param command $PROG "/tmp/etc/knxd.ini" procd_set_param respawn + procd_set_param stdout 1 + procd_set_param stderr 1 procd_close_instance } -stop_service() { - killall knxd -} - reload_service() { restart