Files
2026-04-20 20:59:51 +07:00

24 lines
943 B
Desktop File

[Unit]
Description=LiteRT-LM Server Service
After=network.target
[Service]
Type=simple
User=your_username
WorkingDirectory=/home/your_username/litert-lm-orangepi
Environment="PATH=/usr/bin:/usr/local/bin"
# Tùy chọn 1: Chạy với port mặc định, chọn model từ menu
ExecStart=/usr/bin/python3 /home/your_username/litert-lm-orangepi/server.py
# Tùy chọn 2: Chỉ định port
# ExecStart=/usr/bin/python3 /home/your_username/litert-lm-orangepi/server.py --port 8080
# Tùy chọn 3: Chỉ định model cụ thể
# ExecStart=/usr/bin/python3 /home/your_username/litert-lm-orangepi/server.py --model /path/to/model.litertlm
# Tùy chọn 4: Kết hợp cả hai
# ExecStart=/usr/bin/python3 /home/your_username/litert-lm-orangepi/server.py --port 8080 --model /path/to/model.litertlm
StandardInput=file:/home/your_username/litert-lm-orangepi/service_config.txt
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target