summarylogtreecommitdiffstats
path: root/hysteria@.service
diff options
context:
space:
mode:
author46792021-05-14 12:36:12 +0800
committer46792021-05-14 12:36:12 +0800
commit157d8736aae5da2ef86b4d3ed167f9e4433fac94 (patch)
tree6d6ad7c21cdae92bcb864468bf40965070ebcb33 /hysteria@.service
parentb231225bc402ecc5e080b062e0d91999d74dcbf0 (diff)
downloadaur-157d8736aae5da2ef86b4d3ed167f9e4433fac94.tar.gz
0.8.1
Diffstat (limited to 'hysteria@.service')
-rw-r--r--hysteria@.service16
1 files changed, 9 insertions, 7 deletions
diff --git a/hysteria@.service b/hysteria@.service
index 8139dd4bff55..7423102bec32 100644
--- a/hysteria@.service
+++ b/hysteria@.service
@@ -1,14 +1,16 @@
[Unit]
Description=Hysteria Client Service
-After=network-online.target
-Wants=network-online.target
+After=network.target
[Service]
-Type=exec
-User=nobody
-CapabilityBoundingSet=CAP_NET_BIND_SERVICE
-ExecStart=/usr/bin/hysteria proxy client -config /etc/hysteria/%i.json
+Type=simple
+ExecStart=/usr/bin/hysteria -config /etc/hysteria/%i.json
+WorkingDirectory=/etc/hysteria
+User=hysteria
+Group=hysteria
+CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
+AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
+NoNewPrivileges=true
[Install]
WantedBy=multi-user.target
-