add service
This commit is contained in:
1 parent
9b28cc924a
commit
b53bb4c8a8
4 files changed
+136
No files matched your search
@@ -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