2022-02-09 09:59:50 +00:00
|
|
|
/home/rulingcom/*/*/log/*.log {
|
|
|
|
daily
|
|
|
|
rotate 7
|
|
|
|
compress
|
|
|
|
missingok
|
|
|
|
notifempty
|
|
|
|
copytruncate
|
|
|
|
postrotate
|
|
|
|
[ ! -f /run/nginx.pid ] || kill -USR1 `cat /run/nginx.pid`
|
|
|
|
endscript
|
|
|
|
}
|
|
|
|
|
|
|
|
/home/rulingcom/*/*/*/log/*.log {
|
|
|
|
daily
|
|
|
|
rotate 7
|
|
|
|
compress
|
|
|
|
missingok
|
|
|
|
notifempty
|
|
|
|
copytruncate
|
|
|
|
postrotate
|
|
|
|
[ ! -f /run/nginx.pid ] || kill -USR1 `cat /run/nginx.pid`
|
|
|
|
endscript
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/var/log/mongodb/*.log {
|
|
|
|
daily
|
|
|
|
rotate 7
|
|
|
|
compress
|
|
|
|
missingok
|
|
|
|
notifempty
|
2022-05-24 06:46:05 +00:00
|
|
|
create 644 mongodb mongodb
|
2022-02-09 09:59:50 +00:00
|
|
|
postrotate
|
|
|
|
[ ! -f /var/lib/mongodb/mongod.lock ] || kill -USR1 `cat /var/lib/mongodb/mongod.lock`
|
|
|
|
endscript
|
|
|
|
}
|