remove ia64 keywords
[gentoo-zh.git] / net-proxy / hysteria / files / hysteria-client.initd
bloba814ca9f83f6a7236b8b0226dd8fa701756058d4
1 #!/sbin/openrc-run
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"
15 depend() {
16     need net
17     after local
20 start_pre() {
21     checkpath -d -m 0755 -o "$command_user" /run/hysteria
22     checkpath -f -m 0644 -o "$command_user" "$output_log"