LoginSignup
1
0

More than 1 year has passed since last update.

CentOS8のLogRotateの備忘録

Posted at

CentOS8でのLogRotateの仕組みを整理してみた。

  • サービスやデーモンで動作しているわけでなく、cronコマンドとcron.dailyとの組み合わせ。なのでサービスの再起動とか不要。
  • 前回実行した時間が/var/lib/logrotate/logrotate.statusに記録される。
  • 毎日実行する時間は/etc/anacrontabにかかれている
  • cronでなく、手動実行する場合、
    • logrotate -fv /etc/logrotate.conf
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0