summarylogtreecommitdiffstats
path: root/hysteria-server@.service
blob: d7e0a4f0db27f2cec17ca7ddd57578fdb10edfac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[Unit]
Description=Hysteria Server Service
After=network.target

[Service]
Type=simple
ExecStart=/usr/bin/hysteria -config /etc/hysteria/%i.json server
WorkingDirectory=/etc/hysteria
User=hysteria
Group=hysteria
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_BIND_SERVICE
NoNewPrivileges=true

[Install]
WantedBy=multi-user.target