#!/bin/sh
exec 2>&1
[ -r ./conf ] && . ./conf
: ${GONIC_CACHE_PATH:=/var/cache/gonic}
: ${GONIC_DB_PATH:=/var/db/gonic/gonic.db}
: ${GONIC_MUSIC_PATH:=/var/lib/gonic/music}
: ${GONIC_PODCAST_PATH:=/var/lib/gonic/podcast}
: ${GONIC_PLAYLISTS_PATH:=/var/lib/gonic/playlists}
export GONIC_CACHE_PATH GONIC_DB_PATH GONIC_MUSIC_PATH GONIC_PODCAST_PATH \
	GONIC_PLAYLISTS_PATH
exec chpst -u _gonic gonic $OPTS 2>&1
