diff options
Diffstat (limited to 'net-proxy/byedpi/files/byedpi.initd')
-rw-r--r-- | net-proxy/byedpi/files/byedpi.initd | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net-proxy/byedpi/files/byedpi.initd b/net-proxy/byedpi/files/byedpi.initd new file mode 100644 index 000000000..979beea39 --- /dev/null +++ b/net-proxy/byedpi/files/byedpi.initd @@ -0,0 +1,19 @@ +#!/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 +} |