30 lines
733 B
Desktop File
30 lines
733 B
Desktop File
[Unit]
|
|
Description=sethmux - web terminal (mux.sethpc.xyz)
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=rdp
|
|
Group=rdp
|
|
|
|
ExecStartPre=/bin/bash -c "/usr/bin/tmux kill-session -t sethmux 2>/dev/null; sleep 0.5; /usr/bin/tmux new-session -d -s sethmux -x 120 -y 40"
|
|
ExecStart=/usr/local/bin/ttyd \
|
|
--port 7683 \
|
|
--interface 0.0.0.0 \
|
|
--index /opt/sethmux/index.html \
|
|
--writable \
|
|
--check-origin \
|
|
--max-clients 5 \
|
|
--ping-interval 30 \
|
|
--client-option titleFixed=sethmux \
|
|
--client-option fontSize=18 \
|
|
--client-option fontFamily=monospace \
|
|
--client-option enableSixel=true \
|
|
/usr/bin/tmux attach-session -t sethmux
|
|
|
|
Restart=always
|
|
RestartSec=3
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|