Files
guru/net-proxy/byedpi/files/byedpi.initd
Anna (cybertailor) Vyalkova 47168855f8 net-proxy/byedpi: add 0.13, sync live
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2024-08-23 10:42:42 +05:00

20 lines
478 B
Plaintext

#!/sbin/openrc-run
# shellcheck shell=sh
#
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
: "${BYEDPI_BIND_IP:=0.0.0.0}"
: "${BYEDPI_BIND_PORT:=1080}"
: "${BYEDPI_OPTS:=--disorder 1 --auto=torst --tlsrec 1+s}"
command="/usr/bin/ciadpi"
command_args="--ip ${BYEDPI_BIND_IP} --port ${BYEDPI_BIND_PORT} ${BYEDPI_OPTS}"
command_user="nobody:nobody"
command_background=1
pidfile="/run/${RC_SVCNAME}.pid"
depend() {
need net
}