#!/bin/sh
[ -r conf ] && . ./conf
: ${RMILTERUSER:=rmilter}
: ${RMILTERGROUP:=rmilter}
if [ ! -d /run/rmilter ]; then
	install -d -m 0755 -o $RMILTERUSER -g $RMILTERGROUP /run/rmilter
fi
exec chpst -u $RMILTERUSER:$RMILTERGROUP rmilter -n -c /etc/rmilter/rmilter.conf ${OPTS}
