Skip to content

Instantly share code, notes, and snippets.

@nanpuyue
Created November 6, 2018 13:30
Show Gist options
  • Save nanpuyue/002451438f112350f3fd152e97206206 to your computer and use it in GitHub Desktop.
Save nanpuyue/002451438f112350f3fd152e97206206 to your computer and use it in GitHub Desktop.
frpc init script for openwrt
#!/bin/sh /etc/rc.common
# date: 2018-11-06
# license: GPLv3 https://www.gnu.org/licenses/gpl-3.0.txt
# author: nanpuyue <[email protected]> https://blog.nanpuyue.com
START=95
USE_PROCD=1
start_service() {
procd_open_instance
procd_set_param command /usr/bin/frpc -c /etc/frp/frpc.ini
procd_set_param respawn
procd_close_instance
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment