15 lines
279 B
Bash
15 lines
279 B
Bash
#!/bin/bash
|
|
sleep 2
|
|
|
|
while [[ -e /state/.starting ]]; do
|
|
sleep 1
|
|
done
|
|
|
|
echo "sidekiq starting..."
|
|
|
|
cd /mastodon/app
|
|
exec \
|
|
envdir /state/envdir \
|
|
chpst -u mastodon:mastodon \
|
|
bash -c "bundle exec sidekiq -c $SIDEKIQ_WORKERS -q default -q push -q pull -q mailers"
|