
Client services should pull in network-online.target instead of network.target according to the [doc](https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/).
17 lines
314 B
Desktop File
17 lines
314 B
Desktop File
[Unit]
|
|
Description=Frp Client Service
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=nobody
|
|
Restart=on-failure
|
|
RestartSec=5s
|
|
ExecStart=/usr/bin/frpc -c /etc/frp/%i.ini
|
|
ExecReload=/usr/bin/frpc reload -c /etc/frp/%i.ini
|
|
LimitNOFILE=1048576
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|