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