- 10 era documents (phase plans, build summaries, redesign writeups, old runbooks, completed consolidation plan) moved to docs/history/ with a do-not-follow README. - Root README: current validated population ($2-20, 10-35% static gap + squeeze exception, SIP), Deployment section, automated-maintenance reality, corrected repo map (admin panel, youtube_claims, deploy/). - RUNBOOK rewritten for the running system: daily rhythm, health checks per deployment, and the production failure-mode table earned this week (env drift, pgdata mount traps, uid 10001, zombie approvals, PG_SKIP_ SCHEMA, timezone artifacts). - deploy/README.md is now the three-mode index: compose (canonical), systemd (local dev — unit templates now committed), helm (refresh staged as issue #8). Old k8s doc moved to deploy/helm/README.md. - docker/README.md: six TrueNAS gotchas, each from a real outage. - Admin panel improvements staged as GitHub issues #4-#7. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
18 lines
493 B
Desktop File
18 lines
493 B
Desktop File
[Unit]
|
|
Description=Momentum Telegram Q&A bot
|
|
# retry forever through a DB-host outage (see momentum-loop.service)
|
|
StartLimitIntervalSec=0
|
|
|
|
[Service]
|
|
Type=simple
|
|
WorkingDirectory=/mnt/c/code/momentum
|
|
ExecStart=/home/philip/.venvs/momentum/bin/python -u telegram_bot.py
|
|
Restart=always
|
|
RestartSec=30
|
|
StandardOutput=append:/mnt/c/code/momentum/data/telegram_bot.log
|
|
StandardError=append:/mnt/c/code/momentum/data/telegram_bot.log
|
|
SyslogIdentifier=momentum-qabot
|
|
|
|
[Install]
|
|
WantedBy=default.target
|