[Unit] Description=lmcp hub — fleet MCP broker After=network.target Wants=network.target [Service] Type=simple User=mfritsche Group=mfritsche # When deploying, copy hub.lua to /opt/lmcp/ or adjust the path below. ExecStart=/usr/bin/lua5.4 /usr/share/lua/5.4/hub.lua Environment=LMCP_NAME=hub-tools Environment=LMCP_PORT=8090 # Backend registry: space-separated "name ssh_host lmcp_url token" per line. # See hub-backends.conf.example in this examples/ dir. Environment=LMCP_HUB_BACKENDS=/opt/herding/etc/hub-backends.conf # Bearer token file (key `.godparticle=`). Environment=LMCP_HUB_CONF=/opt/herding/etc/lmcp-hub.conf Restart=on-failure RestartSec=5 StandardOutput=journal StandardError=journal [Install] WantedBy=multi-user.target