Skip to content

Instantly share code, notes, and snippets.

@NemoAlex
Created August 20, 2018 14:42
Show Gist options
  • Save NemoAlex/d9bfb0a45c8d04eaf356753fb7be8971 to your computer and use it in GitHub Desktop.
Save NemoAlex/d9bfb0a45c8d04eaf356753fb7be8971 to your computer and use it in GitHub Desktop.
/etc/init.d/frpc on OpenWrt
#!/bin/sh /etc/rc.common
START=99
USE_PROCD=1
start_service() {
procd_open_instance "frpc"
procd_set_param command /root/frp/frpc -c /root/frp/frpc.ini
procd_set_param stdout 1
procd_set_param stderr 1
procd_set_param user root
procd_close_instance
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment