← back to Mp3 Agentabrams
launchd/com.steve.mp3-agentabrams-server.plist
54 lines
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!--
com.steve.mp3-agentabrams-server — keep the mp3 catalog server alive on Mac2.
OPT-IN:
cp launchd/com.steve.mp3-agentabrams-server.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/com.steve.mp3-agentabrams-server.plist
To disable:
launchctl unload -w ~/Library/LaunchAgents/com.steve.mp3-agentabrams-server.plist
rm ~/Library/LaunchAgents/com.steve.mp3-agentabrams-server.plist
Server stays loopback-only (MP3_HOST defaults to 127.0.0.1 per server.js).
Tailscale access is layered on top via the separate -tailscale-bridge plist.
-->
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.steve.mp3-agentabrams-server</string>
<key>ProgramArguments</key>
<array>
<string>/opt/homebrew/bin/node</string>
<string>/Users/macstudio3/Projects/mp3-agentabrams/server.js</string>
</array>
<key>WorkingDirectory</key>
<string>/Users/macstudio3/Projects/mp3-agentabrams</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>StandardOutPath</key>
<string>/Users/macstudio3/Projects/mp3-agentabrams/logs/server.stdout.log</string>
<key>StandardErrorPath</key>
<string>/Users/macstudio3/Projects/mp3-agentabrams/logs/server.stderr.log</string>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
<key>HOME</key>
<string>/Users/stevestudio2</string>
<key>MP3_PORT</key>
<string>9696</string>
<!-- DO NOT set MP3_HOST here — let server.js default it to 127.0.0.1. -->
</dict>
</dict>
</plist>