add service
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user