add service

This commit is contained in:
2026-04-20 20:07:07 +07:00
parent 9b28cc924a
commit b53bb4c8a8
4 changed files with 136 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
[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"
ExecStart=/usr/bin/python3 /home/your_username/litert-lm-orangepi/server.py
StandardInput=file:/home/your_username/litert-lm-orangepi/service_config.txt
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target