Created
July 21, 2019 07:22
-
-
Save rogerlin0330/14ac606b0a780d3d34050d146cfd0937 to your computer and use it in GitHub Desktop.
Client service sample for frp (https://github.com/fatedier/frp) which should be located in path: /usr/lib/systemd/system.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet | |
| After=network.target multi-user.target | |
| [Service] | |
| ExecStart=/opt/frp_0.23.2_linux_amd64/frpc -c /opt/frp_0.23.2_linux_amd64/frpc.ini | |
| ExecStartPost=/bin/sh -c 'umask 022; pgrep frpc > /var/run/frpc.pid' | |
| StandardOutput=file:/var/log/frpc.log | |
| StandardError=file:/var/log/frpc.log | |
| [Install] | |
| WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment