Fix logrotate bug.

This commit is contained in:
BoHung Chiu 2022-05-18 18:14:39 +08:00
parent a01bec188e
commit a60a556f9c
1 changed files with 2 additions and 2 deletions

View File

@ -293,9 +293,9 @@ $ sudo /usr/sbin/logrotate -f /etc/logrotate.conf #測試執行log壓縮程序
compress
missingok
notifempty
copytruncate
create 644 mongodb mongodb
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
}