forked from iarv/Remote-Terminal-for-MeshCore
24 lines
547 B
Desktop File
24 lines
547 B
Desktop File
[Unit]
|
|
Description=RemoteTerm for MeshCore
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=remoteterm
|
|
Group=remoteterm
|
|
WorkingDirectory=/opt/remoteterm
|
|
ExecStart=/opt/remoteterm/.venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 8000
|
|
Restart=always
|
|
RestartSec=5
|
|
|
|
# Environment
|
|
Environment=MESHCORE_DATABASE_PATH=/opt/remoteterm/data/meshcore.db
|
|
# Uncomment and set if auto-detection doesn't work:
|
|
# Environment=MESHCORE_SERIAL_PORT=/dev/ttyUSB0
|
|
|
|
# Give access to serial devices
|
|
SupplementaryGroups=dialout
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|