Home > System | starlet > logrotate

logrotate

  • Posted by: YAMAGISHI Norimasa
  • 2007年8月 9日 17:43
  • System | starlet

starletのlogrotateの設定をしていなかったため、logが肥大化していた。

/var/lib/logrotate.statusの日付がインストール状態で1990-1-1になっているため、ローテーションがうまく動作しない。
そのため、日付を昨日あたりの日付に書き換える。

#vi /var/lib/logrotate.status

logrotate state -- version 2
"/var/log/messages" 2007-8-8
"/var/log/secure" 2007-8-8

その後、一度、ローテートを行う。

# /usr/sbin/logrotate /etc/logrotate.conf

Trackbacks:0

TrackBack URL for this entry
http://rally.jp/cgi-bin/mt/mt-tb.cgi/145
Listed below are links to weblogs that reference
logrotate from Computer

Home > System | starlet > logrotate

Search
etc...
Feeds

Return to page top