# 是否有可能在不宕机的情况下重启Unicorn？

**URL:** <https://meta.discourse.org/t/is-it-possible-to-restart-unicorn-without-downtime/65155>\
**Category:** Self-hosting\
**Created:** [2017 年6 月 27 日 00:37 UTC](https://meta.discourse.org/t/is-it-possible-to-restart-unicorn-without-downtime/65155 "2017-06-27T00:37:26Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![patrickbajao](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/patrickbajao/32/120896_2.png) [@patrickbajao](https://meta.discourse.org/u/patrickbajao)\
发布日期： [2017 年6 月 27 日 00:37 UTC](https://meta.discourse.org/t/is-it-possible-to-restart-unicorn-without-downtime/65155/1 "2017-06-27T00:37:26Z")

</div>

Hi,

I know that we can use `sv stop unicorn` then `sv start unicorn` to restart unicorn workers. But that will cause downtime. Killing the master with a `USR2` signal is the usual way to do hot restart, as far as I know. Is it still safe to do that for Discourse? Or is there a better way to do this?

I understand that I rarely (or not at all) have to do this. But just want to know in case of emergency.

Thanks!

---

_[View the full topic](https://meta.discourse.org/t/is-it-possible-to-restart-unicorn-without-downtime/65155)._
