[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Apache2's logrotate script



На одном серваке задрала вот такая хрень (cron отписывается):

/etc/cron.daily/logrotate:
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address
0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
error: error running shared postrotate script
for /var/log/apache2/*.log 
error: error running prerotate script for /var/log/atop.log, leaving old
log in place
run-parts: /etc/cron.daily/logrotate exited with return code 1

В вследствие чего естественно апача сдыхает. Происходит это не каждый
раз, обновления последние, Etch.

Судя по всему apache2 просто долго завершается, logrotate не дожидаясь
полного завершения ротейтит логи и пытается запустить её опять, а порт
ещё занят, запуск не получается, спустя какое-то время старый апач
завершается и система остаётся без веб-сервера!

Не подскажете ли куда капнуть?

-- 
Покотиленко Костик <casper@meteor.dp.ua>


Reply to: