mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-28 09:08:50 +02:00
add openwrt init script for frp
This commit is contained in:
parent
d9d80e0a06
commit
c349530e41
12
frp/openwrt/frpc
Normal file
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
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
|
||||
}
|
Loading…
Reference in New Issue
Block a user