1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-20 13:58:42 +00:00

add openwrt init script for frp

This commit is contained in:
kev 2018-01-24 21:23:18 +08:00
parent d9d80e0a06
commit c349530e41
2 changed files with 24 additions and 0 deletions

12
frp/openwrt/frpc Normal file

@ -0,0 +1,12 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2018 EasyPi Software Foundation
START=99
USE_PROCD=1
start_service() {
procd_open_instance
procd_set_param command /usr/bin/frpc -c /etc/frp/frpc.ini
procd_set_param respawn 3600 5 0
procd_close_instance
}

12
frp/openwrt/frps Normal file

@ -0,0 +1,12 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2018 EasyPi Software Foundation
START=99
USE_PROCD=1
start_service() {
procd_open_instance
procd_set_param command /usr/bin/frps -c /etc/frp/frps.ini
procd_set_param respawn 3600 5 0
procd_close_instance
}