#!/bin/execlineb -P

cd /srv/pandora/pandora
export HOME /srv/pandora
export COLUMNS 80   # Workaround for https://github.com/celery/celery/issues/5761
fdmove -c 2 1
s6-setuidgid pandora
/usr/bin/celery -A app worker -Q encoding -n pandora-encoding --maxtasksperchild 500 -l INFO
