tAdd OpenRC initscript in contrib. - tlstun - simple go program to add tls support to other listeners HTML git clone https://git.parazyd.org/tlstun DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit ac9c00dd0aee01a1e7a52e8d3d62afdd39c43b46 DIR parent 9eafb026d57f43fd31bd1b6cf6428cb3ca55043e HTML Author: parazyd <parazyd@dyne.org> Date: Wed, 10 Jul 2019 02:26:21 +0200 Add OpenRC initscript in contrib. Diffstat: A contrib/tlstun.confd | 7 +++++++ A contrib/tlstun.initd | 10 ++++++++++ 2 files changed, 17 insertions(+), 0 deletions(-) --- DIR diff --git a/contrib/tlstun.confd b/contrib/tlstun.confd t@@ -0,0 +1,7 @@ +# Parameters to be passed to tlstun + +#TLSTUN_ARGS="-cacert /etc/ssl/ca.pem -cert /etc/ssl/server.pem -key /etc/ssl/server.key" +#TLSTUN_ARGS="$TLSTUN_ARGS -forward 127.0.0.1:72 -listen 0.0.0.0:7443 -verifyclient" + +TLSTUN_ARGS="-cert /etc/ssl/server.pem -key /etc/ssl/server.key" +TLSTUN_ARGS="$TLSTUN_ARGS -forward 127.0.0.1:72 -listen 0.0.0.0:7443" DIR diff --git a/contrib/tlstun.initd b/contrib/tlstun.initd t@@ -0,0 +1,10 @@ +#!/sbin/openrc-run +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +name="${RC_SVCNAME}" +command="/usr/bin/tlstun" +pidfile="/run/${RC_SVCNAME}.pid" +command_args="${TLSTUN_ARGS}" +command_user="nobody" +command_background="yes"