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