frp/conf/systemd/frpc@.service

20 lines
469 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Frp Client Service
2019-04-24 08:40:13 +08:00
#README.md
Documentation=https://github.com/fatedier/frp/blob/master/README.md
After=network.target
[Service]
2019-04-24 08:40:13 +08:00
Type=simle
#User=root # 使用 root 可能会导致安全问题,不过可以使用前 1024 端口
User=nobody
Restart=on-failure
2019-04-24 08:40:13 +08:00
RestartSec=3s
ExecStart=/usr/bin/frpc -c /etc/frp/%i.ini
ExecReload=/usr/bin/frpc reload -c /etc/frp/%i.ini
[Install]
2019-04-24 08:40:13 +08:00
Alias=frp.service
Alias=frp-client.service
WantedBy=multi-user.target