mix mob.watch_stop (mob_dev v0.3.37)

Copy Markdown View Source

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.