内容へ移動
fl8 Wiki
ユーザ用ツール
ログイン
サイト用ツール
検索
ツール
文書の表示
以前のリビジョン
バックリンク
最近の変更
メディアマネージャー
サイトマップ
ログイン
>
最近の変更
メディアマネージャー
サイトマップ
現在位置:
Dokuwiki.fl8.jp
»
01_linux
»
03_mail
»
17 メールログのログローテート
トレース:
01_linux:03_mail:17_mail_logrotate
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
====== 17 メールログのログローテート ====== メールログは、rsyslogで掴んでいるのでrsyslogにKILL -HUPしてあげないとうまくローテートしない <code> [root@relay ~]# lsof -n | grep maillog rsyslogd 2566 root 2w REG 253,1 30643285 1320630 /var/log/maillog-20190621 </code> ===== 毎日ローテート ===== <code|/etc/logrotate.d/maillog> /var/log/maillog { create 0640 root root daily rotate 30 ifempty sharedscripts postrotate /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true /bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true endscript } </code> {{tag>mail logrotate}}
01_linux/03_mail/17_mail_logrotate.txt
· 最終更新: 2019/06/21 02:09 by
matsui
ページ用ツール
文書の表示
以前のリビジョン
バックリンク
文書の先頭へ