Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64589 - add multilog options to qmail conf-common
Summary: add multilog options to qmail conf-common
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-18 21:11 UTC by Rajiv Aaron Manglani (RETIRED)
Modified: 2004-09-19 01:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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