#!/bin/sh
set -e
mkdir -p /var/lib/bitlbee /run/bitlbee
chown bitlbee:bitlbee /var/lib/bitlbee /run/bitlbee
[ -r conf ] && . ./conf
exec chpst -u bitlbee:bitlbee bitlbee -n ${OPTS:=-F}