29 lines
688 B
Desktop File
29 lines
688 B
Desktop File
[Unit]
|
|
Description=HY2XS Hysteria2 server
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=hysteria
|
|
Group=hysteria
|
|
Environment=HYSTERIA_LOG_LEVEL=info
|
|
Environment=HYSTERIA_LOG_FORMAT=json
|
|
ExecStart=/usr/local/bin/hysteria server -c /etc/hysteria/config.yaml
|
|
Restart=on-failure
|
|
RestartSec=5s
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
ProtectHome=true
|
|
ProtectSystem=strict
|
|
ReadOnlyPaths=/etc/hysteria/config.yaml
|
|
ReadWritePaths=/var/lib/hysteria
|
|
RestrictAddressFamilies=AF_INET AF_UNIX
|
|
SystemCallArchitectures=native
|
|
LockPersonality=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|