summarylogtreecommitdiffstats
path: root/hysteria@.service
diff options
context:
space:
mode:
author46792020-12-14 22:22:07 +0800
committer46792020-12-14 22:22:07 +0800
commitb231225bc402ecc5e080b062e0d91999d74dcbf0 (patch)
treedc7e4a9caadf91a2d0123f5e3f65aa17736c8622 /hysteria@.service
downloadaur-b231225bc402ecc5e080b062e0d91999d74dcbf0.tar.gz
0.4.0
Diffstat (limited to 'hysteria@.service')
-rw-r--r--hysteria@.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/hysteria@.service b/hysteria@.service
new file mode 100644
index 000000000000..8139dd4bff55
--- /dev/null
+++ b/hysteria@.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Hysteria Client Service
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+Type=exec
+User=nobody
+CapabilityBoundingSet=CAP_NET_BIND_SERVICE
+ExecStart=/usr/bin/hysteria proxy client -config /etc/hysteria/%i.json
+
+[Install]
+WantedBy=multi-user.target
+