#!/bin/sh
if [ ! -d /var/run/inspircd ]; then
	mkdir -m0755 -p /var/run/inspircd
fi

chown inspircd:inspircd /var/run/inspircd

exec chpst -u inspircd inspircd \
    --nofork --config /etc/inspircd/inspircd.conf \
    --logfile /var/log/inspircd/ircd.log
