ser2net: fix rpcd reload
authorMichele Primavera <primavera@elmod.it>
Tue, 21 Jan 2020 11:39:04 +0000 (12:39 +0100)
committerMichele Primavera <primavera@elmod.it>
Mon, 27 Jan 2020 07:16:29 +0000 (08:16 +0100)
ser2net did not get restarted after saving in uci or luci

Signed-off-by: Michele Primavera <primavera@elmod.it>
net/ser2net/Makefile
net/ser2net/files/ser2net.init

index 0bbb9b4b0c8fc974920722a0e3b85c4967e2a631..0d5de9e9f10ed89402676d28cdc69653db33a8ae 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ser2net
 PKG_VERSION:=3.5.1
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/ser2net
index 2f7a3d5e728a2d1a7f34a2c8dc8881a07e439875..7fd9d086fcbd4525d9984eaddb4603d05760e858 100644 (file)
@@ -182,5 +182,11 @@ start_service() {
 
        procd_open_instance
        procd_set_param command "$PROG" -n -c "$DYNAMICCFGFILE"
+       procd_set_param file "$DYNAMICCFGFILE"
        procd_close_instance
 }
+
+service_triggers() {
+       procd_add_reload_trigger "ser2net"
+}
+