# Sidekiq runit 脚本过于脆弱：\*\*discourse:www-data\*\* \*\*+ forced\*\* \*\*-L log/sidekiq.log\*\* \*\*导致 1 秒崩溃

**URL:** https://meta.discourse.org/t/sidekiq-runit-script-too-fragile/389331
**Category:** Support
**Tags:** sidekiq
**Created:** [2025年十一月21日 11:56 UTC](https://meta.discourse.org/t/sidekiq-runit-script-too-fragile/389331 "2025-11-21T11:56:44Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2025年十一月22日 22:55 UTC](https://meta.discourse.org/t/sidekiq-runit-script-too-fragile/389331/2 "2025-11-22T22:55:46Z")

</div>

> [@hel\_Sinki](#):
>
> 默认的 runit 脚本是：
> 
> ```plaintext
> exec chpst -u discourse:www-data \
> bash -lc 'cd /var/www/discourse && ... bundle exec sidekiq -e production -L log/sidekiq.log'
> 
> ```

您在哪里找到这个的？Sidekiq 是通过 unicorn master 启动的，以节省内存。在 discourse\_docker 中完全没有看到这段代码。看起来您可能使用的是非常旧的设置？

---

_[View the full topic](https://meta.discourse.org/t/sidekiq-runit-script-too-fragile/389331)._
