mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-16 02:38:44 +00:00
share logrotate.d/mongodb across sailing_server and mongo_instance_setup
This commit is contained in:
@@ -1 +0,0 @@
|
||||
../../../../repo/etc/logrotate.d/mongodb
|
||||
@@ -0,0 +1,32 @@
|
||||
/var/log/mongodb/archive.log
|
||||
{
|
||||
compress
|
||||
delaycompress
|
||||
rotate 5
|
||||
weekly
|
||||
postrotate
|
||||
/usr/bin/kill -SIGUSR1 $( cat /var/lib/mongodb/archive/mongod.lock )
|
||||
endscript
|
||||
}
|
||||
|
||||
/var/log/mongodb/slow.log
|
||||
{
|
||||
compress
|
||||
delaycompress
|
||||
rotate 5
|
||||
weekly
|
||||
postrotate
|
||||
/usr/bin/kill -SIGUSR1 $( cat /var/lib/mongodb/slow/mongod.lock )
|
||||
endscript
|
||||
}
|
||||
|
||||
/var/log/mongodb/hidden-live-replica.log
|
||||
{
|
||||
compress
|
||||
delaycompress
|
||||
rotate 5
|
||||
weekly
|
||||
postrotate
|
||||
/usr/bin/kill -SIGUSR1 $( cat /var/lib/mongodb/hidden-live-replica/mongod.lock )
|
||||
endscript
|
||||
}
|
||||
@@ -1,29 +1,11 @@
|
||||
/var/log/mongodb/archive.log
|
||||
{
|
||||
compress
|
||||
rotate 5
|
||||
weekly
|
||||
postrotate
|
||||
/usr/bin/kill -SIGUSR1 $( cat /var/lib/mongodb/archive/mongod.lock )
|
||||
endscript
|
||||
}
|
||||
compress
|
||||
delaycompress
|
||||
|
||||
/var/log/mongodb/slow.log
|
||||
/var/log/mongodb/mongod.log
|
||||
{
|
||||
compress
|
||||
rotate 5
|
||||
weekly
|
||||
postrotate
|
||||
/usr/bin/kill -SIGUSR1 $( cat /var/lib/mongodb/slow/mongod.lock )
|
||||
endscript
|
||||
}
|
||||
|
||||
/var/log/mongodb/hidden-live-replica.log
|
||||
{
|
||||
compress
|
||||
rotate 5
|
||||
weekly
|
||||
postrotate
|
||||
/usr/bin/kill -SIGUSR1 $( cat /var/lib/mongodb/hidden-live-replica/mongod.lock )
|
||||
/usr/bin/killall -SIGUSR1 mongod
|
||||
endscript
|
||||
}
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
compress
|
||||
/var/log/mongodb/mongod.log
|
||||
{
|
||||
rotate 5
|
||||
weekly
|
||||
postrotate
|
||||
/usr/bin/killall -SIGUSR1 mongod
|
||||
endscript
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
../../../../repo/etc/logrotate.d/mongodb
|
||||
Reference in New Issue
Block a user