frpc/frpc.sh
2025-09-22 11:55:04 +08:00

20 lines
379 B
Bash

/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