#!/bin/sh
# scan local lib on first run
test -f /var/lib/mopidy/library.json.gz \
|| chpst -umopidy mopidy --config /etc/mopidy.conf local scan

exec chpst -u mopidy:audio mopidy --config /etc/mopidy.conf 2>&1
