systemd unit minor edits
This commit is contained in:
parent
5c3b4b15fe
commit
9484484230
@ -1,14 +1,19 @@
|
||||
[Unit]
|
||||
Description=Frp Client Service
|
||||
#README.md
|
||||
Documentation=https://github.com/fatedier/frp/blob/master/README.md
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
#User=root #使用 root 可能会导致安全问题,不过可以使用前 1024 端口
|
||||
User=nobody
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
RestartSec=3s
|
||||
ExecStart=/usr/bin/frpc -c /etc/frp/frpc.ini
|
||||
ExecReload=/usr/bin/frpc reload -c /etc/frp/frpc.ini
|
||||
|
||||
[Install]
|
||||
Alias=frp.service
|
||||
Alias=frp-client.service
|
||||
WantedBy=multi-user.target
|
||||
|
@ -1,14 +1,19 @@
|
||||
[Unit]
|
||||
Description=Frp Client Service
|
||||
#README.md
|
||||
Documentation=https://github.com/fatedier/frp/blob/master/README.md
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=idle
|
||||
Type=simle
|
||||
#User=root #使用 root 可能会导致安全问题,不过可以使用前 1024 端口
|
||||
User=nobody
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
RestartSec=3s
|
||||
ExecStart=/usr/bin/frpc -c /etc/frp/%i.ini
|
||||
ExecReload=/usr/bin/frpc reload -c /etc/frp/%i.ini
|
||||
|
||||
[Install]
|
||||
Alias=frp.service
|
||||
Alias=frp-client.service
|
||||
WantedBy=multi-user.target
|
||||
|
@ -1,13 +1,18 @@
|
||||
[Unit]
|
||||
Description=Frp Server Service
|
||||
#README.md
|
||||
Documentation=https://github.com/fatedier/frp/blob/master/README.md
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
#User=root #使用 root 可能会导致安全问题,不过可以使用前 1024 端口
|
||||
User=nobody
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
RestartSec=3s
|
||||
ExecStart=/usr/bin/frps -c /etc/frp/frps.ini
|
||||
|
||||
[Install]
|
||||
Alias=frpd.service
|
||||
Alias=frp-server.service
|
||||
WantedBy=multi-user.target
|
||||
|
@ -1,13 +1,18 @@
|
||||
[Unit]
|
||||
Description=Frp Server Service
|
||||
#README.md
|
||||
Documentation=https://github.com/fatedier/frp/blob/master/README.md
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
#User=root #使用 root 可能会导致安全问题,不过可以使用前 1024 端口
|
||||
User=nobody
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
RestartSec=3s
|
||||
ExecStart=/usr/bin/frps -c /etc/frp/%i.ini
|
||||
|
||||
[Install]
|
||||
Alias=frpd.service
|
||||
Alias=frp-server.service
|
||||
WantedBy=multi-user.target
|
||||
|
Loading…
Reference in New Issue
Block a user