Files
lg-smtv-mcp/deploy/lg-smtv-mcp.service
T
kiskaadee 96068cacf2 fix(deploy): resolve nix through service PATH
- Start the service via absolute /usr/bin/env so systemd does not need to resolve a nonstandard nix path itself.\n- Make the Nix binary directory an explicit unit placeholder and explain how operators set it.
2026-11-16 19:45:50 -05:00

18 lines
451 B
Desktop File

[Unit]
Description=LG webOS Smart TV MCP server
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
User=<User>
WorkingDirectory=<WorkingDirectory>
EnvironmentFile=<WorkingDirectory>/.env
Environment="PATH=<NixBinDir>:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
ExecStart=/usr/bin/env nix develop --command python -m lg_smtv_mcp serve
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target