From: "Шенцев Алексей Владимирович" <ashen@nsrz.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] sarg
Date: Thu, 1 Mar 2007 18:28:09 +0300
Message-ID: <200703011828.09746.ashen@nsrz.ru> (raw)
In-Reply-To: <a1b0b2150703010719i40ae2872ve08add7af22c655a@mail.gmail.com>
В сообщении от Thursday 01 March 2007 18:19:42 Алексей Синицын написал(а):
> На линуксшопе сказано ротать логи командой squid -k rotate , man
> подтвердил, а сквид забил. То есть реакции на такую команду не было.
> Работает-ли это у других, или есть еще шанс на багрепорт? :)
> Собственно в моем случае вполне приемлимо просто удалять логи, но
> access.log после рестарта сквида не был создан, и при создении его
> вручную в нем не появлялись записи после авторизации в сквиде
> (владельцем указал squid, права как у cache.log и store.log). В
> затруднении, даже не знаю где искать.
Для ротации логов есть вообщето пакет logrotate, который по cron'у
осуществляет ротацию логов. И делает это корректней ваших ручек, учмтывая alt
linux specifics ... ;)
Например, со сквидом он поступает так:
[root@gw logrotate.d]# cat /etc/logrotate.d/squid
/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
}
--
С уважением Шенцев Алексей Владимирович.
E-mail: ashen@nsrz.ru
XMPP: ashen@altlinux.org, AlexShen@jabber.ru
ICQ: 271053845
next prev parent reply other threads:[~2007-03-01 15:28 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-28 18:55 Алексей Синицын
2007-03-01 7:22 ` Шенцев Алексей Владимирович
2007-03-01 14:10 ` Genix
2007-03-02 8:15 ` Владимир
2007-03-02 8:23 ` Dmitriy L. Kruglikov
2007-03-01 7:29 ` Шенцев Алексей Владимирович
2007-03-01 15:19 ` Алексей Синицын
2007-03-01 15:27 ` Dmitriy L. Kruglikov
2007-03-01 15:28 ` Шенцев Алексей Владимирович [this message]
2007-03-01 15:30 ` Alexey Shabalin
2007-03-01 15:35 ` Шенцев Алексей Владимирович
2007-03-01 16:25 ` Алексей Синицын
2007-03-01 16:32 ` Шенцев Алексей Владимирович
2007-03-01 16:42 ` Алексей Синицын
2007-03-01 17:58 ` Алексей Синицын
2007-03-02 6:13 ` Шенцев Алексей Владимирович
2007-03-02 6:52 ` Dmitriy L. Kruglikov
2007-03-06 8:56 ` Беляев В.Н.
2007-03-06 9:18 ` Dmitriy L. Kruglikov
2007-03-06 9:38 ` Беляев В.Н.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200703011828.09746.ashen@nsrz.ru \
--to=ashen@nsrz.ru \
--cc=sisyphus@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git