adding set -o nounset

If /etc/sysconfig/supervisord this doesn't exist, script should ideally exit rather than evaluating variables like $PIDFILE. I persoanlly faced the issue and noticed this bug.