2 # Copyright 2023 Gentoo Authors
3 # Distributed under the terms of the GNU General Public License v2
5 pidfile="/run/hysteria/hysteria-client.pid"
6 command="/usr/bin/hysteria"
7 command_args="client --config /etc/hysteria/client.yaml --disable-update-check"
8 command_background="yes"
9 command_user="hysteria:hysteria"
11 capabilities="^cap_net_bind_service,^cap_net_admin,^cap_net_raw"
12 output_log="/var/log/hysteria-client.log"
13 error_log="/var/log/hysteria-client.log"
21 checkpath -d -m 0755 -o "$command_user" /run/hysteria
22 checkpath -f -m 0644 -o "$command_user" "$output_log"