# `mix mob.watch_stop`
[🔗](https://github.com/genericjam/mob_dev/blob/main/lib/mix/tasks/mob.watch_stop.ex#L1)

Stops a running `mix mob.watch` process.

    mix mob.watch_stop

Reads the PID written by `mix mob.watch` and sends SIGTERM.

## Under the hood

    pid = File.read!("_build/mob_watch.pid") |> String.trim()
    System.cmd("kill", [pid])   # SIGTERM
    File.rm("_build/mob_watch.pid")

Equivalent to running `kill $(cat _build/mob_watch.pid)` in a terminal.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
