mastodon-docker/rootfs/etc/service/sidekiq/run

15 lines
282 B
Plaintext
Raw Permalink Normal View History

#!/bin/bash
2019-12-09 11:55:55 +00:00
sleep 5
while [[ -e /state/.starting ]]; do
2019-12-09 11:55:55 +00:00
sleep 5
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"