Files
meshcore-phone-mode/meshcore-phone-mode.service
T

29 lines
801 B
Desktop File

# Zorruno — MeshCore Phone App Mode v1.0 — 2026-10-03
[Unit]
Description=MeshCore WebUI phone-app handover via MQTT
After=network-online.target docker.service
Wants=network-online.target docker.service
[Service]
Type=simple
User=root
ExecStart=/opt/meshcore-phone-mode/venv/bin/python /opt/meshcore-phone-mode/controller.py --config /etc/meshcore-phone-mode.ini
Restart=on-failure
RestartSec=10
TimeoutStopSec=50
Environment=PYTHONUNBUFFERED=1
Environment=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=true
ProtectSystem=strict
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
RestrictSUIDSGID=true
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
UMask=0077
[Install]
WantedBy=multi-user.target