simbiot-harness/scripts/simbiot-harness-tg.service

23 lines
852 B
Desktop File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[Unit]
Description=Simbiot Harness - Telegram inbox poller
After=network-online.target simbiot-harness.service
Wants=network-online.target
[Service]
Environment=SIMBIOT_HOME=__DATA_DIR__
Environment=SIMBIOT_RAG_DB=/root/rag/rag.db
Type=simple
WorkingDirectory=__INSTALL_DIR__
ExecStart=__INSTALL_DIR__/venv/bin/python -m harness.tg_inbox
Restart=always
RestartSec=5
Environment=PYTHONUNBUFFERED=1
# t-261004160531-780666: поллер лёгкий — тяжёлая транскрипция (faster-whisper
# large-v3-turbo ~2-3G, ffmpeg) вынесена в отдельные transient-scope'ы
# (systemd-run --scope, см. harness/voice.py _heavy_run) с их MemoryMax.
# Жёсткий потолок юнита: 3.7G peak больше невозможен физически.
MemoryMax=1G
MemoryHigh=768M
[Install]
WantedBy=multi-user.target