void-packages/srcpkgs/bitlbee/files/bitlbee/run

7 lines
185 B
Bash

#!/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}