This is probably a very lame question, but: how do I get AOLServer
to roll
all its logs? I have the following setup in nsd.tcl:
[snip]
ns_section ns/parameters
ns_param serverlog /var/log/aolserver/${server}.log
ns_param home ${homedir}
ns_param maxkeepalive 0
ns_param maxbackup 5
ns_param debug ${debug}
ns_param rolllog true
ns_param logroll true
ns_param rollfmt %Y%m%d
ns_param rollday *
ns_param rollhour 3
ns_param rollonsignal true
[snip]
ns_section ns/server/${server}/module/nslog
ns_param file ${homedir}/log/${server}.log
ns_param enablehostnamelookup false
ns_param logcombined true
ns_param logrefer false
ns_param loguseragent false
ns_param maxbackup 5
ns_param rollday *
ns_param rollfmt %Y-%m-%d-%H:%M
ns_param rollhour 0
ns_param rollonsignal true
ns_param rolllog true
[snip]
Now, the "server" section works and rolls the logs every day at
2400hrs. The
global section does not work and log grows and grows and grows...
Also, is there a way to tell AOLServer to compress logs?
Finally, can it be made to work with syslog/newsyslog? Last time I
tried
something like this:
#logfilename [owner:group] mode count size when [ZJB] [/pid_file]
[sig_num]
/var/log/aolserver/openacs-dev-error.log nsadmin:www 640 5 100 * Z
in my /etc/newsyslog.conf, log rolled every day, like a clock, but had
no data
in it except for "Log rolled" entry. I understand that I need to signal
AOLServer that log was rolled, but how? Same story is with
PostgreSQL, btw.