John Peacock wrote:
> As far as using the FHS file layout, I would actually just modify the
> log/run file to point to the "correct" location, e.g.
>
> #! /bin/sh
> export LOGDIR=/var/log/qpsmtpd
> exec multilog t n60 $LOGDIR
Personally, I always use something like this for my log run file (for
all services - not just qpsmtpd:
#! /bin/sh
LOGDIR=/var/log/qpsmtpd
LOGUSER=qpsmtpd
LOGGROUP=qpsmtpd
COUNT=30
SIZE=1024000
mkdir -p $LOGDIR
chown -R ${LOGUSER}:${LOGGROUP} ${LOGDIR}
exec /usr/local/bin/setuidgid ${LOGUSER} \
/usr/local/bin/multilog t \
n$COUNT \
s$SIZE \
$LOGDIR
R.