Browse Source

knxd: adjust startup files to better comply with procd

Signed-off-by: Othmar Truniger <github@truniger.ch>
lilik-openwrt-22.03
Othmar Truniger 5 years ago
parent
commit
615a4ae9d7
4 changed files with 9 additions and 10 deletions
  1. +1
    -1
      net/knxd/Makefile
  2. +3
    -1
      net/knxd/files/knxd.config
  3. +0
    -1
      net/knxd/files/knxd.ini
  4. +5
    -7
      net/knxd/files/knxd.init

+ 1
- 1
net/knxd/Makefile View File

@ -12,7 +12,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=knxd PKG_NAME:=knxd
PKG_VERSION:=0.14.29 PKG_VERSION:=0.14.29
PKG_RELEASE:=3
PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/knxd/knxd/tar.gz/$(PKG_VERSION)? PKG_SOURCE_URL:=https://codeload.github.com/knxd/knxd/tar.gz/$(PKG_VERSION)?


+ 3
- 1
net/knxd/files/knxd.config View File

@ -8,7 +8,9 @@ config daemon args
#enable the EIBnet/IP server to answer discovery and description requests (SEARCH, DESCRIPTION) #enable the EIBnet/IP server to answer discovery and description requests (SEARCH, DESCRIPTION)
option Discovery 1 option Discovery 1
# EIBADDR set our EIB address to EIBADDR (default 0.0.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 # LEVEL set error level
option error 0 option error 0
# PORT listen at TCP port PORT (default 6720) # PORT listen at TCP port PORT (default 6720)


+ 0
- 1
net/knxd/files/knxd.ini View File

@ -7,7 +7,6 @@ driver = ip
name = mcast:knxd name = mcast:knxd
[main] [main]
addr = 0.0.1 addr = 0.0.1
background = true
client-addrs = 0.0.2:10 client-addrs = 0.0.2:10
connections = A.tcp,server,B.ip connections = A.tcp,server,B.ip
[server] [server]


+ 5
- 7
net/knxd/files/knxd.init View File

@ -36,7 +36,7 @@ start_service() {
append_parm args client_addrs "client-addrs" "0.0.2:10" append_parm args client_addrs "client-addrs" "0.0.2:10"
append_parm args layer2 "layer2" append_parm args layer2 "layer2"
append_bool args GroupCache "GroupCache" 0 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 error "error" # "5"
append_parm args listen_tcp "listen-tcp" "6720" append_parm args listen_tcp "listen-tcp" "6720"
append_parm args Interface "Interface" # "eth0" append_parm args Interface "Interface" # "eth0"
@ -56,18 +56,16 @@ start_service() {
if [ "$url" == "usb:" ] ; then if [ "$url" == "usb:" ] ; then
url="usb:""$(findknxusb | tail -n1 | sed -e 's/device: \([0-9]:[0-9]:[0-9]\):[0-9].*/\1/')" url="usb:""$(findknxusb | tail -n1 | sed -e 's/device: \([0-9]:[0-9]:[0-9]\):[0-9].*/\1/')"
fi 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_open_instance
procd_set_param command $PROG "/tmp/etc/knxd.ini" procd_set_param command $PROG "/tmp/etc/knxd.ini"
procd_set_param respawn procd_set_param respawn
procd_set_param stdout 1
procd_set_param stderr 1
procd_close_instance procd_close_instance
} }
stop_service() {
killall knxd
}
reload_service() reload_service()
{ {
restart restart


Loading…
Cancel
Save