mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 21:13:27 -04:00
app-crypt/tang: initial import
Signed-off-by: Julien Roy <julien@jroy.ca>
This commit is contained in:
16
app-crypt/tang/files/tangd.initd
Normal file
16
app-crypt/tang/files/tangd.initd
Normal file
@@ -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
|
||||
6
app-crypt/tang/files/tangd.service
Normal file
6
app-crypt/tang/files/tangd.service
Normal file
@@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=Tang Server
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/socat TCP-LISTEN:8888,bind=0.0.0.0,fork SYSTEM:'/usr/libexec/tangd /var/db/tang'
|
||||
User=tang
|
||||
Reference in New Issue
Block a user