diff --git a/frpc.sh b/frpc.sh index 62ac58c..812660c 100644 --- a/frpc.sh +++ b/frpc.sh @@ -1,20 +1,3 @@ -/etc/systemd/system/ - +sudo mv ./frpc.service /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 +sudo systemctl enable frpc.service \ No newline at end of file