summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-02-22 20:56:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-02-26 08:38:11 +0000
commitcfc888941d2df3b088b69b8fb9e4e84c8bc7cdbc (patch)
treeb7b83836b0902ac1840468bb315649b93ae7ae9d
parentReleasing debian version 1.6.3-2. (diff)
downloadttyd-cfc888941d2df3b088b69b8fb9e4e84c8bc7cdbc.tar.xz
ttyd-cfc888941d2df3b088b69b8fb9e4e84c8bc7cdbc.zip
Adding /etc/default/ttyd to handle options used to start ttyd via systemd unit.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/local/default/ttyd3
-rw-r--r--debian/ttyd.README.Debian2
-rw-r--r--debian/ttyd.install1
-rw-r--r--debian/ttyd.service3
4 files changed, 7 insertions, 2 deletions
diff --git a/debian/local/default/ttyd b/debian/local/default/ttyd
new file mode 100644
index 0000000..526f877
--- /dev/null
+++ b/debian/local/default/ttyd
@@ -0,0 +1,3 @@
+# /etc/default/ttyd
+
+TTYD_OPTIONS="-i lo -p 7681 -O login"
diff --git a/debian/ttyd.README.Debian b/debian/ttyd.README.Debian
index 8e8aaa0..9af0faa 100644
--- a/debian/ttyd.README.Debian
+++ b/debian/ttyd.README.Debian
@@ -11,7 +11,7 @@ ttyd for Debian
- Login mode means that the user gets a login prompt (like getty) where
user and password has to be entered.
- * See ttyd(1) manpage for the exact options.
+ * Edit /etc/default/ttyd and check the ttyd(1) manpage for the exact options.
-- Daniel Baumann <daniel.baumann@progress-linux.org> Sun, 21 Feb 2021 17:19:20 +0100
diff --git a/debian/ttyd.install b/debian/ttyd.install
new file mode 100644
index 0000000..70f696a
--- /dev/null
+++ b/debian/ttyd.install
@@ -0,0 +1 @@
+debian/local/default/* /etc/default
diff --git a/debian/ttyd.service b/debian/ttyd.service
index 4e05835..25956c7 100644
--- a/debian/ttyd.service
+++ b/debian/ttyd.service
@@ -5,7 +5,8 @@ After=network.target systemd-tmpfiles-clean.service
[Service]
Type=simple
-ExecStart=/usr/bin/ttyd -i lo -p 7681 -O login
+EnvironmentFile=/etc/default/ttyd
+ExecStart=/usr/bin/ttyd $TTYD_OPTIONS
ExecReload=/usr/bin/kill -HUP $MAINPID
KillMode=process
LimitNOFILE=512