# how do i stop bernstein

Canonical URL: https://bernstein.run/q/how-do-i-stop-or-pause-bernstein
Markdown URL: https://bernstein.run/q/how-do-i-stop-or-pause-bernstein.md
Tags: lifecycle, stop

bernstein stop sends a graceful drain signal: in-flight tasks finish, no new tasks start, the orchestrator exits clean. bernstein stop --hard kills the process group via the pid file under .sdd/runtime/. never grep for the word bernstein and kill matches; you risk hitting unrelated processes that contain the substring. on relaunch the orchestrator reads .sdd/ back, sees the unfinished tasks, and resumes from the last persisted checkpoint (wal files under .sdd/runtime/wal/, code in src/bernstein/core/persistence/). worktrees and logs from the previous run are preserved.

## Related

- https://bernstein.run/q/fail-closed-agent-orchestrator
- https://bernstein.run/q/how-does-bernstein-work
