Skip to content

Instantly share code, notes, and snippets.

@lukebakken
Last active August 4, 2017 17:25
Show Gist options
  • Save lukebakken/6cb43279822f12a4ef59ea7c3d96eeb8 to your computer and use it in GitHub Desktop.
Save lukebakken/6cb43279822f12a4ef59ea7c3d96eeb8 to your computer and use it in GitHub Desktop.
Kill a RabbitMQ vhost
f(), {ok, Pid} = rabbit_vhost_sup_sup:get_vhost_sup(<<"/">>), [MPid] = [Pid || {Name, Pid, _, _} <- supervisor:which_children(Pid), Name == msg_store_persistent], erlang:exit(MPid, force_vhost_failure).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment