syslog виртуальных хостов
Добавлено: 2009-04-14 15:08:08
Покажите как правильно убивать большие access.log and error.log в директориях по типу /home/*/log/
Веб сервер - apache 1.3
Веб сервер - apache 1.3
Если есть силы бежать – кто поверит, что нет сил драться?!
https://forum.lissyara.su/
Код: Выделить всё
echo -n > /path/to/file.logКод: Выделить всё
-rw-r--r-- 1 root wheel 140067 Apr 14 17:26 messages
-rw-r--r-- 1 root wheel 7881 Apr 14 00:00 messages.0.bz2
-rw-r--r-- 1 root wheel 9034 Apr 13 20:00 messages.1.bz2
-rw-r--r-- 1 root wheel 10609 Apr 13 17:00 messages.2.bz2
-rw-r--r-- 1 root wheel 23836 Apr 13 13:00 messages.3.bz2
-rw-r--r-- 1 root wheel 18927 Apr 13 12:00 messages.4.bz2
-rw-r--r-- 1 root wheel 11106 Apr 13 09:00 messages.5.bz2
Код: Выделить всё
/home/*/log/*log {
missingok
notifempty
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
endscript
}