mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 09:06:21 +01:00
Fix the log rotation for the db, once and for all
This commit is contained in:
parent
1bf45a0843
commit
23b34b4c94
12
bin/run.tcsh
12
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
|
||||
|
Loading…
Reference in New Issue
Block a user