- 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.
18 lines
451 B
Desktop File
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
|