23 lines
775 B
Desktop File
23 lines
775 B
Desktop File
[Unit]
|
|
Description=Terminal web del equipo
|
|
# -i eth0 necesita la IP ya puesta. La pone ifupdown2, que en la imagen
|
|
# Debian 13 de PVE no retrasa network-online.target, así que se le espera a él
|
|
After=networking.service
|
|
# teams.sh escribe la ruta de la URL del equipo; hasta entonces ttyd no arranca
|
|
ConditionPathExists=/etc/default/ttyd
|
|
# Corre como alumno, que puede matarlo: reiniciarlo siempre, sin límite
|
|
StartLimitIntervalSec=0
|
|
|
|
[Service]
|
|
User=alumno
|
|
WorkingDirectory=~
|
|
Environment=LANG=C.UTF-8
|
|
EnvironmentFile=/etc/default/ttyd
|
|
# Sin NoNewPrivileges=: crontab(1) es setgid y el nivel 2b lo necesita
|
|
ExecStart=/usr/local/bin/ttyd -W -i eth0 -p ${TTYD_PORT} -b ${TTYD_BASE} -m 4 -t fontSize=16 bash -l
|
|
Restart=always
|
|
RestartSec=2
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|