Refactor systemd service config to use environment variables
• Add LIGHTRAG_HOME environment variable • Use .venv instead of venv directory
This commit is contained in:
@@ -9,11 +9,14 @@ User=netman
|
|||||||
MemoryHigh=8G
|
MemoryHigh=8G
|
||||||
MemoryMax=12G
|
MemoryMax=12G
|
||||||
|
|
||||||
# Using virtual enviroment created by miniconda
|
# Set the LightRAG installation directory (change this to match your installation path)
|
||||||
Environment="PATH=/home/netman/miniconda3/bin:/home/netman/lightrag-xyj/venv/bin"
|
Environment="LIGHTRAG_HOME=/home/netman/lightrag-xyj"
|
||||||
WorkingDirectory=/home/netman/lightrag-xyj
|
|
||||||
# ExecStart=/home/netman/lightrag-xyj/venv/bin/lightrag-server
|
# Set Environment to your Python virtual environment
|
||||||
ExecStart=/home/netman/lightrag-xyj/venv/bin/lightrag-gunicorn
|
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
|
# Kill mode require ExecStart must be gunicorn or unvicorn main process
|
||||||
KillMode=process
|
KillMode=process
|
||||||
|
|||||||
Reference in New Issue
Block a user