diff options
Diffstat (limited to 'www-apps/ttyd/files')
-rw-r--r-- | www-apps/ttyd/files/ttyd.confd | 4 | ||||
-rw-r--r-- | www-apps/ttyd/files/ttyd.initd | 14 | ||||
-rw-r--r-- | www-apps/ttyd/files/ttyd.service | 11 |
3 files changed, 29 insertions, 0 deletions
diff --git a/www-apps/ttyd/files/ttyd.confd b/www-apps/ttyd/files/ttyd.confd new file mode 100644 index 0000000..8a79b7d --- /dev/null +++ b/www-apps/ttyd/files/ttyd.confd @@ -0,0 +1,4 @@ +# conf.d file for ttyd + +# Please check man 1 ttyd for more information about the options +TTYD_OPTS="-i lo -O login" diff --git a/www-apps/ttyd/files/ttyd.initd b/www-apps/ttyd/files/ttyd.initd new file mode 100644 index 0000000..7e8821b --- /dev/null +++ b/www-apps/ttyd/files/ttyd.initd @@ -0,0 +1,14 @@ +#!/sbin/openrc-run +# shellcheck shell=sh +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +name="ttyd daemon" +command="/usr/bin/ttyd" +command_args="${TTYD_OPTS}" +command_background="true" +pidfile="/run/ttyd.pid" + +depend() { + use logger net +} diff --git a/www-apps/ttyd/files/ttyd.service b/www-apps/ttyd/files/ttyd.service new file mode 100644 index 0000000..3315ad4 --- /dev/null +++ b/www-apps/ttyd/files/ttyd.service @@ -0,0 +1,11 @@ +[Unit] +Description=ttyd daemon +Documentation=man:ttyd(1) +After=network.target + +[Service] +EnvironmentFile=/etc/conf.d/ttyd +ExecStart=/usr/bin/ttyd $TTYD_OPTS + +[Install] +WantedBy=multi-user.target |