diff --git a/frpc.sh b/frpc.sh new file mode 100644 index 0000000..62ac58c --- /dev/null +++ b/frpc.sh @@ -0,0 +1,20 @@ +/etc/systemd/system/ + +sudo systemctl daemon-reload + +sudo systemctl enable --now frpc + + +[Unit] +Description=FRP Client Service +After=network.target syslog.target +Wants=network.target +[Service] +Type=simple +User=root +WorkingDirectory=/usr/local/frp +ExecStart=/usr/local/frp/frpc -c /usr/local/frp/frpc.toml +Restart=on-failure +RestartSec=5 +[Install] +WantedBy=multi-user.target \ No newline at end of file