diff options
author | Geir Magnusson Jr <geir@geir-magnusson-jrs-mac-pro.local> | 2008-07-09 11:24:45 -0400 |
---|---|---|
committer | Geir Magnusson Jr <geir@geir-magnusson-jrs-mac-pro.local> | 2008-07-09 11:24:45 -0400 |
commit | 23b34b4c94bcf7bd36b64f3a10abf3c407db4f87 (patch) | |
tree | a735f41daee119ee0e9f01ce3e4842ae572748d5 /bin | |
parent | 1bf45a0843ae3f28977f3a26a637c478ac557371 (diff) | |
download | mongo-23b34b4c94bcf7bd36b64f3a10abf3c407db4f87.tar.gz |
Fix the log rotation for the db, once and for all
Diffstat (limited to 'bin')
-rw-r--r-- | bin/run.tcsh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/run.tcsh b/bin/run.tcsh index f2fd2ef8de6..5e82b8504d3 100644 --- a/bin/run.tcsh +++ b/bin/run.tcsh @@ -3,12 +3,12 @@ limit coredumpsize 200m while ( 1 == 1 ) - if ( -f log/run.log6 ) mv log/run.log6 log/run.log.7 - if ( -f log/run.log5 ) mv log/run.log5 log/run.log.6 - if ( -f log/run.log4 ) mv log/run.log4 log/run.log.5 - if ( -f log/run.log3 ) mv log/run.log3 log/run.log.4 - if ( -f log/run.log2 ) mv log/run.log2 log/run.log.3 - if ( -f log/run.log1 ) mv log/run.log1 log/run.log.2 + if ( -f log/run.log.6 ) mv log/run.log.6 log/run.log.7 + if ( -f log/run.log.5 ) mv log/run.log.5 log/run.log.6 + if ( -f log/run.log.4 ) mv log/run.log.4 log/run.log.5 + if ( -f log/run.log.3 ) mv log/run.log.3 log/run.log.4 + if ( -f log/run.log.2 ) mv log/run.log.2 log/run.log.3 + if ( -f log/run.log.1 ) mv log/run.log.1 log/run.log.2 if ( -f log/run.log ) mv log/run.log log/run.log.1 ./db/db run >& log/run.log |