#!/bin/sh
exec 2>&1

[ -r ./conf ] && . ./conf

: "${OPTS:=-db sqlite+/var/db/goatcounter/db.sqlite3?_busy_timeout=200&_journal_mode=wal&cache=shared -listen :5000 -public-port 5000 -tls none -websocket}"

exec chpst -u _goatcounter goatcounter serve ${OPTS}
