summarylogtreecommitdiffstats
path: root/frpc@.service
diff options
context:
space:
mode:
authorVimsucks2018-06-22 14:10:54 +0800
committerVimsucks2018-06-22 14:10:54 +0800
commitecb39fc5ea2ece63c1adf8fdcadc26d5578ab98b (patch)
tree0f87e89727c28c54578d102dd7884dbda3536b90 /frpc@.service
parent4fd876099a9e40487f059cf303a47398f4c82d3e (diff)
downloadaur-ecb39fc5ea2ece63c1adf8fdcadc26d5578ab98b.tar.gz
update service file, add Restart=on-failure
Diffstat (limited to 'frpc@.service')
-rw-r--r--frpc@.service4
1 files changed, 3 insertions, 1 deletions
diff --git a/frpc@.service b/frpc@.service
index c88ae7f33c6..46251ed88bc 100644
--- a/frpc@.service
+++ b/frpc@.service
@@ -3,8 +3,10 @@ Description=Frp Client Service
After=network.target
[Service]
-Type=simple
+Type=idle
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