frp: update to 0.47.0
authorVan Waholtz <brvphoenix@gmail.com>
Thu, 16 Feb 2023 02:21:20 +0000 (10:21 +0800)
committerTianling Shen <cnsztl@gmail.com>
Thu, 9 Mar 2023 02:41:17 +0000 (10:41 +0800)
A restart is only required if `$conf_file` has been modified.

Signed-off-by: Van Waholtz <brvphoenix@gmail.com>
net/frp/Makefile
net/frp/files/frpc.init
net/frp/files/frps.init

index d77066e9becb8d85a43773ddfa2828752a9d6e87..f664fa8e1292da07acfdfd9ecffa69d21722567c 100644 (file)
@@ -1,12 +1,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=frp
-PKG_VERSION:=0.46.1
+PKG_VERSION:=0.47.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/fatedier/frp/tar.gz/v${PKG_VERSION}?
-PKG_HASH:=af3e8d9d4144cf520cee2609cd45fb575afe711c03cc7441dc89d0402628a869
+PKG_HASH:=d98ebf8638701cf8662604b9fe2fb355f91209f87edcb77f2830c7fa40ccbe37
 
 PKG_MAINTAINER:=Richard Yu <yurichard3839@gmail.com>
 PKG_LICENSE:=Apache-2.0
index e7f06edbd513d6b3573bd40d1eb01732abe6068c..68fe43c4e022a49e3e88203f888b05cd566469ee 100644 (file)
@@ -69,6 +69,7 @@ start_service() {
 
        procd_open_instance
        procd_set_param command "$PROG" -c "$conf_file"
+       procd_set_param file $conf_file
        procd_set_param stdout $stdout
        procd_set_param stderr $stderr
        [ -n "$user" ] && procd_set_param user "$user"
@@ -77,8 +78,3 @@ start_service() {
        [ -n "$env" ] && config_list_foreach "$init_cfg" env "procd_append_param env"
        procd_close_instance
 }
-
-reload_service() {
-       stop
-       start
-}
index b87525cd2a3a107331590d5da797a7907a0e1f6f..38f714fb1bed6a69cac1a389f3a70d032a8a9c21 100644 (file)
@@ -67,6 +67,7 @@ start_service() {
 
        procd_open_instance
        procd_set_param command "$PROG" -c "$conf_file"
+       procd_set_param file $conf_file
        procd_set_param stdout $stdout
        procd_set_param stderr $stderr
        [ -n "$user" ] && procd_set_param user "$user"
@@ -75,8 +76,3 @@ start_service() {
        [ -n "$env" ] && config_list_foreach "$init_cfg" env "procd_append_param env"
        procd_close_instance
 }
-
-reload_service() {
-       stop
-       start
-}