# `mix dala.watch_stop`
[🔗](https://github.com/manhvu/dala_dev/blob/main/lib/mix/tasks/dala.watch_stop.ex#L1)

Stops a running `mix dala.watch` process.

    mix dala.watch_stop

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

## Under the hood

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

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

---

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