Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from lxhao61:main #68

Merged
merged 1 commit into from
Jan 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions service configuration/hysteria.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ Documentation=https://github.com/HyNetwork/hysteria
After=network.target nss-lookup.target

[Service]
User=nobody
User=root
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
NoNewPrivileges=true
ExecStart=/usr/local/bin/hysteria/hysteria -config /usr/local/etc/hysteria/config.json server
Restart=on-failure
RestartPreventExitStatus=23
RestartSec=10s
LimitNOFILE=infinity

[Install]
WantedBy=multi-user.target