2019-12-08 06:50:36 +00:00
|
|
|
#!/bin/bash
|
2019-12-09 11:55:55 +00:00
|
|
|
sleep 5
|
2019-12-08 06:50:36 +00:00
|
|
|
|
|
|
|
while [[ -e /state/.starting ]]; do
|
2019-12-09 11:55:55 +00:00
|
|
|
sleep 5
|
2019-12-08 06:50:36 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
echo "sidekiq starting..."
|
|
|
|
|
|
|
|
cd /mastodon/app
|
|
|
|
exec \
|
|
|
|
envdir /state/envdir \
|
|
|
|
chpst -u mastodon:mastodon \
|
2019-12-09 09:15:23 +00:00
|
|
|
bash -i -c "bundle exec sidekiq -c $SIDEKIQ_WORKERS -q default -q push -q pull -q mailers"
|