Skip to content

An always-on second brain you talk to. Voice notes in Telegram → typed, linked knowledge in your Obsidian vault. Runs 24/7 on the Claude subscription you already have.

fix(upgrade): restart bot/watchdog so changed units re-apply on re-run

smixs62f09302ceb9
diff --git a/upgrade.sh b/upgrade.sh
index 6d1b521..25f22b6 100755
--- a/upgrade.sh
+++ b/upgrade.sh
@@ -58,9 +58,14 @@ for f in "$PROJECT_DIR"/deploy/dbrain-*.service "$PROJECT_DIR"/deploy/dbrain-*.t
done
systemctl --user daemon-reload
loginctl enable-linger "$USER" 2>/dev/null || echo " ⚠ could not enable linger (services won't start on boot without it)"
-systemctl --user enable --now \
+systemctl --user enable \
dbrain-bot.service dbrain-watchdog.service \
dbrain-process.timer dbrain-doctor.timer dbrain-weekly.timer
+# restart (not just enable --now): on a re-run the units may have changed, and
+# enable --now won't re-apply a new unit to an already-running service.
+# KillMode=process means restarting the bot/watchdog does NOT kill the brain.
+systemctl --user restart dbrain-bot.service dbrain-watchdog.service
+systemctl --user start dbrain-process.timer dbrain-doctor.timer dbrain-weekly.timer
say "7/8 Guard: no claude -p in the hot path"
bash "$PROJECT_DIR/scripts/check-no-claude-p.sh"