fix(skills,ops): deploy @aipass telegram bot under systemd + fix unit log path
The ported telegram-bot@.service logged to a non-existent ~/system_logs (would crash-loop the service); point StandardOutput/StandardError at <repo>/system_logs where the app already logs. Then installed the unit, enable --now + loginctl enable-linger so the @aipass mother-bot runs as a proper user service with reboot survival and a one-line restart. Startup log confirms: Telegram API OK, Command menu set (6 commands), poll loop, tmux session preserved, NRestarts=0. DPLAN-0220
This commit is contained in:
@@ -70,6 +70,18 @@ PyPI version — not the changelog header.
|
||||
startup menu.)
|
||||
(DPLAN-0220)
|
||||
|
||||
- **Telegram `@aipass` deployed under systemd (reboot survival + clean lifecycle)** —
|
||||
the live mother-bot was a hand-launched foreground process: no reboot survival, and
|
||||
`stop_bot`/restart targeted an uninstalled `telegram-bot@base` unit, so there was no
|
||||
working lifecycle command. Installed the user service + `enable --now` +
|
||||
`loginctl enable-linger` (`Linger=yes`); the 17:26 startup log confirms the full
|
||||
chain live — `Telegram API OK`, **`Command menu set (6 commands)`** (the new `/help`
|
||||
menu), stale-lock cleanup, poll loop, tmux Claude session preserved, `NRestarts=0`.
|
||||
Also corrected the ported unit's `StandardOutput`/`StandardError`, which pointed at a
|
||||
non-existent `~/system_logs` (would have crash-looped the service) — now
|
||||
`<repo>/system_logs`, matching where the app already logs. Restart is now
|
||||
`systemctl --user restart telegram-bot@base`. (DPLAN-0220)
|
||||
|
||||
- **seedgo CLI help checkers green-lit non-compliant `--help` output** — the
|
||||
`cli`/`help_text`/`introspection` standards are static source scans (they
|
||||
confirm a `print_help` function, `console.print`, and `--help` wiring exist)
|
||||
|
||||
@@ -25,8 +25,8 @@ Environment=AIPASS_BOT_ID=%i
|
||||
Environment=AIPASS_SESSION_TYPE=telegram
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
StandardOutput=append:%h/system_logs/telegram-bot-%i.log
|
||||
StandardError=append:%h/system_logs/telegram-bot-%i.log
|
||||
StandardOutput=append:%h/Projects/AIPass/system_logs/telegram-bot-%i.log
|
||||
StandardError=append:%h/Projects/AIPass/system_logs/telegram-bot-%i.log
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
||||
Reference in New Issue
Block a user