From 93aad42f23bdfba546afe4225e0cfc27e7b8ffac Mon Sep 17 00:00:00 2001 From: Julien Roy Date: Sun, 17 Apr 2022 16:37:42 -0400 Subject: Updated tang --- app-crypt/tang/files/tang.initd | 16 ---------------- app-crypt/tang/files/tangd.initd | 16 ++++++++++++++++ app-crypt/tang/files/tangd.service | 5 +---- 3 files changed, 17 insertions(+), 20 deletions(-) delete mode 100644 app-crypt/tang/files/tang.initd create mode 100644 app-crypt/tang/files/tangd.initd diff --git a/app-crypt/tang/files/tang.initd b/app-crypt/tang/files/tang.initd deleted file mode 100644 index 4b7e429..0000000 --- a/app-crypt/tang/files/tang.initd +++ /dev/null @@ -1,16 +0,0 @@ -#!/sbin/openrc-run -# Copyright 2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -port=8888 -bind=0.0.0.0 -tangd=/usr/libexec/tangd -tangdir=/var/db/tang - -name="tang daemon" -description="Tang binding daemon" -command=/usr/bin/socat -pidfile="/var/run/${RC_SVCNAME}.pid" -command_user="tang" -command_args="TCP-LISTEN:${port},bind=${bind},fork SYSTEM:'${tangd} ${tangdir}'" -command_background=true diff --git a/app-crypt/tang/files/tangd.initd b/app-crypt/tang/files/tangd.initd new file mode 100644 index 0000000..4b7e429 --- /dev/null +++ b/app-crypt/tang/files/tangd.initd @@ -0,0 +1,16 @@ +#!/sbin/openrc-run +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +port=8888 +bind=0.0.0.0 +tangd=/usr/libexec/tangd +tangdir=/var/db/tang + +name="tang daemon" +description="Tang binding daemon" +command=/usr/bin/socat +pidfile="/var/run/${RC_SVCNAME}.pid" +command_user="tang" +command_args="TCP-LISTEN:${port},bind=${bind},fork SYSTEM:'${tangd} ${tangdir}'" +command_background=true diff --git a/app-crypt/tang/files/tangd.service b/app-crypt/tang/files/tangd.service index 8a7507b..59625d9 100644 --- a/app-crypt/tang/files/tangd.service +++ b/app-crypt/tang/files/tangd.service @@ -2,8 +2,5 @@ Description=Tang Server [Service] -StandardInput=socket -StandardOutput=socket -StandardError=journal -ExecStart=/usr/bin/socat "TCP-LISTEN:8888,bind=0.0.0.0,fork SYSTEM:'/usr/libexec/tangd /var/db/tang'" +ExecStart=/usr/bin/socat TCP-LISTEN:8888,bind=0.0.0.0,fork SYSTEM:'/usr/libexec/tangd /var/db/tang' User=tang -- cgit v1.2.3