Index: openacs-4/etc/config.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/etc/config.tcl,v diff -u -N -r1.51 -r1.52 --- openacs-4/etc/config.tcl 14 Jul 2009 12:12:56 -0000 1.51 +++ openacs-4/etc/config.tcl 11 Mar 2010 14:36:51 -0000 1.52 @@ -82,6 +82,7 @@ # maxkeepalive is ignored in aolserver4.x ns_param maxkeepalive 0 ns_param logroll on + ns_param logmaxbackup 10 ns_param maxbackup 5 ns_param debug $debug # ns_param mailhost localhost Index: openacs-4/packages/acs-tcl/tcl/utilities-init.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/utilities-init.tcl,v diff -u -N -r1.8 -r1.9 --- openacs-4/packages/acs-tcl/tcl/utilities-init.tcl 10 Oct 2008 11:30:35 -0000 1.8 +++ openacs-4/packages/acs-tcl/tcl/utilities-init.tcl 11 Mar 2010 14:36:51 -0000 1.9 @@ -13,10 +13,10 @@ # Create mutex for util_background_exec nsv_set util_background_exec_mutex . [ns_mutex create oacs:bg_exec] -# if maxbackup in config is missing or zero, don't run auto-logrolling -set maxbackup [ns_config -int "ns/parameters" maxbackup 0] +# if logmaxbackup in config is missing or zero, don't run auto-logrolling +set logmaxbackup [ns_config -int "ns/parameters" logmaxbackup 0] -if { $maxbackup } { +if { $logmaxbackup } { ad_schedule_proc -all_servers t -schedule_proc ns_schedule_daily \ [list 00 00] util::roll_server_log } Index: openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl,v diff -u -N -r1.120 -r1.121 --- openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl 11 Mar 2010 11:03:01 -0000 1.120 +++ openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl 11 Mar 2010 14:36:51 -0000 1.121 @@ -4356,7 +4356,7 @@ Invoke the AOLserver ns_logroll command with some bookend log records. This rolls the error log, not the access log. } { # This param controlls how many backups of the server log to keep, - ns_config -int "ns/parameters" maxbackup 7 + ns_config -int "ns/parameters" logmaxbackup 10 ns_log Notice "util::roll_server_log: Rolling the server log now..." ns_logroll ns_log Notice "util::roll_server_log: Done rolling the server log."