[Unit] Description=OrbiSubs traducción %i (español → inglés con el LLM de gpu02) After=orbisubs-asr@%i.service # Throttle: como mucho 5 arranques en 10 min (caso TVR-hls de v1: loops de restarts). StartLimitIntervalSec=600 StartLimitBurst=5 [Service] EnvironmentFile=/etc/orbisubs/%i.env # Proceso aparte: si el LLM se cuelga, la pista de español sigue igual. ExecStartPre=/bin/sh -c 'rm -rf /var/www/hls/%i/en /var/www/hls/%i/en.m3u8; mkdir -p /var/log/orbisubs' ExecStart=/opt/orbisubs/venv/bin/python /opt/orbisubs/orbisubs_tr.py --dir /var/www/hls/%i \ --url ${LLM_URL} --model ${LLM_MODEL} --metrics /var/log/orbisubs/%i-en.jsonl Restart=always RestartSec=5 [Install] WantedBy=multi-user.target