summarylogtreecommitdiffstats
path: root/hysteria1@.service
blob: dd953963cd4238bc7b64e32dbe0ef103cfb87ec9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[Unit]
Description=Hysteria (Legacy) Client Service
Documentation=https://v1.hysteria.network/
After=network.target nss-lookup.target

[Service]
Type=simple
ExecStart=/usr/bin/hysteria1 client --config %i.json --no-check
WorkingDirectory=/etc/hysteria
User=hysteria
Group=hysteria
Environment=HYSTERIA_LOG_LEVEL=info
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW
NoNewPrivileges=true

[Install]
WantedBy=multi-user.target