2008/5/17 10:02
poundによる負荷分散(2) パソコン・インターネット
/etc/logrotate.d/pound
を次のように修正。syslogdのlogrotateは1週間となっているので、7日に1回は2回処理されることになる。
/var/log/pound {
daily
rotate 7
missingok
notifempty
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
/sbin/service pound restart > /dev/null 2>/dev/null || true
endscript
}
を次のように修正。syslogdのlogrotateは1週間となっているので、7日に1回は2回処理されることになる。
/var/log/pound {
daily
rotate 7
missingok
notifempty
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
/sbin/service pound restart > /dev/null 2>/dev/null || true
endscript
}
