1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00
This commit is contained in:
kev 2019-07-15 11:35:09 +08:00
parent 24352b6148
commit 00de8d884f
4 changed files with 18 additions and 2 deletions

View File

@ -3,9 +3,10 @@ Description=frp client
After=network.target
[Service]
User=nobody
ExecStart=/usr/local/bin/frpc -c /etc/frp/frpc.ini
ExecReload=/usr/local/bin/frpc reload -c /etc/frp/frpc.ini
LimitNOFILE=65535
LimitNOFILE=65536
RestartSec=5
Restart=always

14
frp/systemd/frpc@.service Normal file
View File

@ -0,0 +1,14 @@
[Unit]
Description=Frp Client Service
After=network.target
[Service]
User=nobody
ExecStart=/usr/local/bin/frpc -c /etc/frp/%i.ini
ExecReload=/usr/local/bin/frpc reload -c /etc/frp/%i.ini
LimitNOFILE=65536
RestartSec=5
Restart=always
[Install]
WantedBy=multi-user.target

View File

@ -3,8 +3,9 @@ Description=frp server
After=network.target
[Service]
User=nobody
ExecStart=/usr/local/bin/frps -c /etc/frp/frps.ini
LimitNOFILE=65535
LimitNOFILE=65536
RestartSec=5
Restart=always