/
krepost
/
LightRAG
Обзор
Документация
Войти
/
krepost
/
LightRAG
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
lightrag.service.example
30 строк
741 B
yangdx
Refactor systemd service config to use environment variables
29 окт 2025, 15:14
29 окт 2025, 15:14
0fa2fc9
Код
Авторство
О чём код?
[Unit] Description=LightRAG XYJ Service After=network.target [Service] Type=simple User=netman # Memory settings MemoryHigh=8G MemoryMax=12G # Set the LightRAG installation directory (change this to match your installation path) Environment="LIGHTRAG_HOME=/home/netman/lightrag-xyj" # Set Environment to your Python virtual environment Environment="PATH=${LIGHTRAG_HOME}/.venv/bin" WorkingDirectory=${LIGHTRAG_HOME} ExecStart=${LIGHTRAG_HOME}/.venv/bin/lightrag-server # ExecStart=${LIGHTRAG_HOME}/.venv/bin/lightrag-gunicorn # Kill mode require ExecStart must be gunicorn or unvicorn main process KillMode=process ExecStop=/bin/kill -s TERM $MAINPID TimeoutStopSec=60 Restart=always RestartSec=30 [Install] WantedBy=multi-user.target