
- Add instance name to template units - Change service type to `idle` for frpc - Check config file existence before starting
16 lines
278 B
Desktop File
16 lines
278 B
Desktop File
[Unit]
|
|
Description=Frp Server Service
|
|
After=network.target
|
|
StartLimitIntervalSec=3
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=nobody
|
|
Restart=on-failure
|
|
RestartSec=5s
|
|
ExecStartPre=/bin/test -s /etc/frp/frps.ini
|
|
ExecStart=/usr/bin/frps -c /etc/frp/frps.ini
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|