LoginSignup
11
12

More than 5 years have passed since last update.

logrotateメモ

Posted at

logrotateメモ

実行せずにテストする

logrotate -d /etc/logrotate.conf

個別に

logrotate -d /etc/logrotate.d/hoge

もっと詳しい情報を出す

logrotate -dv /etc/logrotate.conf

logrotateが実際に行われてるか確認する

cat /var/lib/logrotate.status

強制的にlogrotateする

logrotate -f /etc/logrotate.conf

logrotateが上手くいかない場合は、大体、/etc/logrotate.d/hogeで全角がはいってたりとか
そもそも、無いファイル指定してたりとか、ミスってる場合が多いです。

11
12
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
11
12