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 -r1.5 -r1.5.4.1 --- openacs-4/packages/acs-tcl/tcl/utilities-init.tcl 3 Oct 2003 10:14:30 -0000 1.5 +++ openacs-4/packages/acs-tcl/tcl/utilities-init.tcl 26 Mar 2004 08:11:18 -0000 1.5.4.1 @@ -1,6 +1,6 @@ ad_library { - Initializes datastrctures for utility procs. + Initializes datastructures for utility procs. @creation-date 02 October 2000 @author Bryan Quinn @@ -13,4 +13,10 @@ # Create mutex for util_background_exec nsv_set util_background_exec_mutex . [ns_mutex create] +# if maxbackup in config is missing or zero, don't run auto-logrolling +set maxbackup [ns_config -int "ns/parameters" maxbackup 0] +if { $maxbackup } { + ad_schedule_proc -schedule_proc ns_schedule_daily \ + [list 00 00] util::roll_server_log +}