Files
javis/homey-mcp/homey-mcp.service
T
2026-10-04 15:31:44 +02:00

29 lines
755 B
Desktop File

# Template unit: install as /etc/systemd/system/homey-mcp@.service and enable
# homey-mcp@<user>.service. (%h would be /root here: specifiers ignore User=.)
[Unit]
Description=Homey MCP Server (LAN mode for Odysseus)
After=network.target
Wants=network.target
[Service]
Type=simple
User=%i
WorkingDirectory=/home/%i/homey-mcp
ExecStart=/home/%i/homey-mcp/run-lan.sh
Environment=HOMEY_MCP_TRANSPORT=streamable-http
Environment=HOMEY_MCP_HOST=0.0.0.0
Environment=HOMEY_MCP_PORT=8080
EnvironmentFile=/home/%i/homey-mcp/.env
Restart=on-failure
RestartSec=5
StandardOutput=journal
StandardError=journal
# Security hardening
NoNewPrivileges=true
ProtectSystem=strict
ReadWritePaths=/home/%i/homey-mcp
ProtectHome=read-only
[Install]
WantedBy=multi-user.target