• 追加された行はこの色です。
  • 削除された行はこの色です。
* logrotate [#aaf8fdc6]

** ログが存在しなくてもロテートする [#a60b41e9]
size 0 を指定する。
 /var/log/mail/maillog
 {
    daily
    rotate 30
    size 0
    create 0640 root wheel
    postrotate
        /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
    endscript
 }

** 参考 [#j53a3ead]
- man http://www.linuxcommand.org/man_pages/logrotate8.html
- RedHat https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/s1-logfiles-locating.html



トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS