void-packages/srcpkgs/rmilter/files/rmilter/run

9 lines
276 B
Bash
Executable File

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