public
Fork of 10gen/mongo
Description: 10gen database
Homepage: http://www.10gen.com/wiki/db
Clone URL: git://github.com/tmm1/mongo.git
Fix the log rotation for the db, once and for all
Geir Magnusson Jr (author)
Wed Jul 09 08:24:45 -0700 2008
commit  23b34b4c94bcf7bd36b64f3a10abf3c407db4f87
tree    a735f41daee119ee0e9f01ce3e4842ae572748d5
parent  1bf45a0843ae3f28977f3a26a637c478ac557371
...
3
4
5
6
7
8
9
10
11
 
 
 
 
 
 
12
13
14
...
3
4
5
 
 
 
 
 
 
6
7
8
9
10
11
12
13
14
0
@@ -3,12 +3,12 @@ limit coredumpsize 200m
0
 
0
 while ( 1 == 1 )
0
 
0
- if ( -f log/run.log6 ) mv log/run.log6 log/run.log.7
0
- if ( -f log/run.log5 ) mv log/run.log5 log/run.log.6
0
- if ( -f log/run.log4 ) mv log/run.log4 log/run.log.5
0
- if ( -f log/run.log3 ) mv log/run.log3 log/run.log.4
0
- if ( -f log/run.log2 ) mv log/run.log2 log/run.log.3
0
- if ( -f log/run.log1 ) mv log/run.log1 log/run.log.2
0
+ if ( -f log/run.log.6 ) mv log/run.log.6 log/run.log.7
0
+ if ( -f log/run.log.5 ) mv log/run.log.5 log/run.log.6
0
+ if ( -f log/run.log.4 ) mv log/run.log.4 log/run.log.5
0
+ if ( -f log/run.log.3 ) mv log/run.log.3 log/run.log.4
0
+ if ( -f log/run.log.2 ) mv log/run.log.2 log/run.log.3
0
+ if ( -f log/run.log.1 ) mv log/run.log.1 log/run.log.2
0
   if ( -f log/run.log ) mv log/run.log log/run.log.1
0
 
0
   ./db/db run >& log/run.log

Comments

    No one has commented yet.