Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 64589

Summary: add multilog options to qmail conf-common
Product: Gentoo Linux Reporter: Rajiv Aaron Manglani (RETIRED) <rajiv>
Component: New packagesAssignee: Net-Mail Packages <net-mail+disabled>
Status: RESOLVED WORKSFORME    
Severity: enhancement    
Priority: Normal    
Version: 1.4   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Rajiv Aaron Manglani (RETIRED) gentoo-dev 2004-09-18 21:11:21 UTC
the conf files in /var/qmail/control/conf-* from qmail 1.03-r13+ are cool. how about adding
a variable in conf-common for parameters to pass to multilog ?

right now in /var/qmail/supervise/qmail-send/log/run and /var/qmail/supervise/qmail-smtpd/log/run
there is:

exec /usr/bin/setuidgid qmaill /usr/bin/multilog t s2500000 /var/log/qmail/qmail-smtpd

i would like to be able to set the value for 's' and also add in 'n25', without having to edit the
'run' file.

something like

exec /usr/bin/setuidgid qmaill /usr/bin/multilog t ${MULTILOG_OPTS} /var/log/qmail/qmail-smtpd

with that variable set in /var/qmail/control/conf-common
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-09-19 01:26:02 UTC
This support has been in qmail (see conf-common) for more than 9 months already (in -r14 and -r15).

Just how exactly did you not see it?

snippet from conf-common:
# logging directives
LOG_OPTS="t" # 't' is for timestamp
LOG_MAXSIZE=2500000 # defalts to '99999' if empty
LOG_MAXCOUNT=10 # defaults to '10' if empty

# build LOG_OPTS from this
[ -n "${LOG_MAXSIZE}" ] && LOG_OPTS="${LOG_OPTS} s${LOG_MAXSIZE}"
[ -n "${LOG_MAXCOUNT}" ] && LOG_OPTS="${LOG_OPTS} n${LOG_MAXCOUNT}"

# directory to log to
LOG_DEST=/var/log/qmail/qmail-${SERVICE}d