Skip to content

Instantly share code, notes, and snippets.

@rogerlin0330
Created July 21, 2019 07:22
Show Gist options
  • Save rogerlin0330/14ac606b0a780d3d34050d146cfd0937 to your computer and use it in GitHub Desktop.
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.
[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