managarten/scripts/mac-mini/launchd/com.manacore.telegram-ollama-bot.plist
Till-JS 3de2f25552 feat(mac-mini): add stability improvements
High priority stability features:
- Add all LaunchD plists to Git for version control
- Handle crash-looping containers (Restarting status) in ensure-containers.sh
- Add database backup script with daily/weekly rotation
- Add Docker log rotation setup (50MB max, 3 files per container)

New files:
- scripts/mac-mini/backup-databases.sh - Daily pg_dump with rotation
- scripts/mac-mini/setup-docker-logging.sh - Configure daemon.json
- scripts/mac-mini/launchd/*.plist - All 8 LaunchD service configs
- scripts/mac-mini/launchd/README.md - Documentation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-12 13:33:44 +01:00

36 lines
1.3 KiB
Text

<?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">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.manacore.telegram-ollama-bot</string>
<key>ProgramArguments</key>
<array>
<string>/opt/homebrew/bin/node</string>
<string>/Users/mana/projects/manacore-monorepo/services/telegram-ollama-bot/dist/main.js</string>
</array>
<key>WorkingDirectory</key>
<string>/Users/mana/projects/manacore-monorepo/services/telegram-ollama-bot</string>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin</string>
<key>TELEGRAM_BOT_TOKEN</key>
<string>8559479868:AAHF3g7vYLs0eOvDLh7hFVnIB-V8CKehUOM</string>
<key>OLLAMA_URL</key>
<string>http://localhost:11434</string>
<key>OLLAMA_MODEL</key>
<string>gemma3:4b</string>
<key>PORT</key>
<string>3301</string>
</dict>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>StandardOutPath</key>
<string>/Users/mana/Library/Logs/telegram-ollama-bot.log</string>
<key>StandardErrorPath</key>
<string>/Users/mana/Library/Logs/telegram-ollama-bot.log</string>
</dict>
</plist>