#!/bin/sh
exec 2>&1

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

: ${PORT=8002}
: ${DATA_DIR=/srv/www/popcorn}

exec chpst -u _popcorn:_popcorn pqueryd --checkpoint_enabled=false --port $PORT --data_dir $DATA_DIR
