こんにちは、浅井です。
rotatingのエラーメールがROOTから突然やってきました。原因を追求すべく
過去ログなどを調べてみましたが、ありませんでした。英語は苦手な僕ですが
なんとなく意味はわかったのですが、どうやって解決したらいいのかよくわかり
ません。下記が届いたエラーメッセ―ジです。おそらく、store.logをsquildが動
いているときにスクリプトによりコピーをしようとしたからエラーになったように
思えます。それかlogrotateの設定が間違っていないかな〜と思い、squidを調
べてみました。なにやらごみっぽいもの「)」が/var/log/squid/store.logのブロ
ックにあるのですが、こんなごみが下記のようなエラーメッセージを出すものな
のでしょうか?
届いたメールの内容(subject:errors rotating logs)
----------------------------------------------
errors occured while rotating /var/log/squid/store.log
squid: ERROR: No running copy
error running postrotate script
----------------------------------------------
logrotateの設定ファイル
----------------------------------------------
/var/log/squid/access.log {
weekly
rotate 5
copytruncate
compress
notifempty
missingok
}
/var/log/squid/cache.log {
weekly
rotate 5
copytruncate
compress
notifempty
missingok
}
/var/log/squid/store.log {
weekly
rotate 5
copytruncate
compress
notifempty)
missingok
# This script asks squid to rotate its logs on its own.
# Restarting squid is a long process and it is not worth
# doing it just to rotate logs
postrotate
/usr/sbin/squid -k rotate
endscript
}
----------------------------------------------
Follow-Ups:
- Prev by Subject: [linux-users:75010] Re: 怪文書ね。
- Next by Subject: [linux-users:75012] Re: rotatingエラーについて
- Previous by thread: [linux-users:75009] [ANN] 熊本Linuxユーザ会 10月定例研究会開催のご案内
- Next by thread: [linux-users:75012] Re: rotatingエラーについて
- Indexes:[Main][Thread]