summarylogtreecommitdiffstats
path: root/kvmd-webterm.service
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd-webterm.service')
-rw-r--r--kvmd-webterm.service12
1 files changed, 4 insertions, 8 deletions
diff --git a/kvmd-webterm.service b/kvmd-webterm.service
index fbf54c57bdc7..8d5b8ed1503d 100644
--- a/kvmd-webterm.service
+++ b/kvmd-webterm.service
@@ -1,5 +1,5 @@
[Unit]
-Description=Pi-KVM Web Terminal (GoTTY)
+Description=Pi-KVM - Web terminal (ttyd)
After=network.target
[Service]
@@ -7,14 +7,10 @@ User=kvmd-webterm
Group=kvmd-webterm
WorkingDirectory=/home/kvmd-webterm
-Environment=TERM=xterm-256color
-ExecStart=/usr/bin/gotty \
- --title-format="Pi-KVM Terminal: {{ .hostname }} (GoTTY)" \
- --address=127.0.0.1 \
- --port=8090 \
+ExecStart=/usr/bin/ttyd \
+ --interface=/run/kvmd/ttyd.sock \
--index=/usr/share/kvmd/extras/webterm/index.html \
- --permit-write \
- /bin/bash -c 'cat /etc/motd; bash'
+ /bin/bash -c 'echo -ne "\033]0;Pi-KVM Terminal: `hostname -f` (ttyd)\007"; cat /etc/motd; bash'
[Install]
WantedBy=multi-user.target