Fix logrotate bug.
This commit is contained in:
parent
a01bec188e
commit
a60a556f9c
|
@ -293,9 +293,9 @@ $ sudo /usr/sbin/logrotate -f /etc/logrotate.conf #測試執行log壓縮程序
|
||||||
compress
|
compress
|
||||||
missingok
|
missingok
|
||||||
notifempty
|
notifempty
|
||||||
copytruncate
|
create 644 mongodb mongodb
|
||||||
postrotate
|
postrotate
|
||||||
[ ! -f /var/lib/mongodb/mongod.lock ] || kill -SIGUSR1 `cat /var/lib/mongodb/mongod.lock`
|
[ ! -f /var/lib/mongodb/mongod.lock ] || kill -USR1 `cat /var/lib/mongodb/mongod.lock`
|
||||||
endscript
|
endscript
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue