[linux-network] YNT: Re: YNT: Re: YNT: Re: squid

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: esat yasar çaglayan (esat@vitel.com.tr)
Date: Thu 02 Sep 2004 - 13:58:02 EEST


Olayın nedeni /var dizine altında logları tutuyor ve loglar /var
dizininde büyük yer tutuyor

Yeniden linux u kurdum /var için 2 gb ın biraz üzerinde yer
ayırdım.
Sistem çalışmaya başlayalı 2 saat oldu ama df komutu ile
baktığımda /var
için yüzde 8 gibi bir kullanım gözüküyor ve artmaya devam
ediyor

Bunu nasıl engelleyebilirim. Belli bir zaman sonra /var dizini yüzde
yüz
olunca squid stop ediyor logları mı kısıtlamam gerek ya da
başka bir
yöntemi var mı

Ayrıca log kısıtlamalarını nasıl gerçekleştirebilirim

Iyi çalışmalar

-----Özgün İleti-----
Kimden: linux-network-bounce@liste.linux.org.tr
[mailto:linux-network-bounce@liste.linux.org.tr] Yerine Sets WarLIq
Tarih: 01 Eylül 2004 Çarşamba 12:46
Kime: linux-network@liste.linux.org.tr
Konu: [linux-network] Re: YNT: Re: YNT: Re: squid

http://www.squid-cache.org/Doc/FAQ/FAQ.html#toc11.43

You may get this message when you run commands like squid -krotate.

This error message usually means that the squid.pid file is missing.
Since the PID file is normally present when squid is running, the
absence of the PID file usually means Squid is not running. If you
accidentally delete the PID file, Squid will continue running, and you
won't be able to send it any signals.

If you accidentally removed the PID file, there are two ways to get it
back
.

run ps and find the Squid process id. You'll probably see two
processes, like this:
bender-wessels % ps ax | grep squid
83617 ?? Ss 0:00.00 squid -s
83619 ?? S 0:00.48 (squid) -s (squid)

You want the second process id, 83619 in this case. Create the PID
file and put the process id number there. For example:
echo 83619 > /usr/local/squid/logs/squid.pid

Use the above technique to find the Squid process id. Send the process
a HUP signal, which is the same as squid -kreconfigure:
kill -HUP 83619

The reconfigure process creates a new PID file automatically.

On Wed, 1 Sep 2004 12:33:23 +0300, esat yasar aglayan
<esat@vitel.com.tr> wrote:
> /var/log/squid/store.log dosyas na yazarken 28 nolu hata kodunu
> yolluyor
> bu neden kaynaklanabilir
>
> squid ilk bata al yor g zk y
or
> squid (pid 8345) is running
> error no running copy diyor
>
> daha sonra
>
> squid dead but subsys locked
> >squid: ERROR: No running copy
>
> hatasn veriyor
>
> tail /var/log/messages bakt mda
>
> /var/log/squid/store.log i erisine yazarken 28 nolu hatay veri
yor
>
> bunun nedeni ne olabilir
>
>
>
> ----- zgn leti-----
> Kimden: linux-network-bounce@liste.linux.org.tr
> [mailto:linux-network-bounce@liste.linux.org.tr] Yerine Bulent
Tatlidil
> Tarih: 31 Austos 2004 Sal 16:55
> Kime: linux-network@liste.linux.org.tr
> Konu: [linux-network] Re: YNT: Re: squid
>
> =?iso-8859-9?Q?esat_yasar_aglayan?= wrote:
>
> >Dosyan n ad squid.pid mi acaba?
> >
> >
> ta kendisi.
>
> >Sebebi squid uygulamasi bir sekilde sonlanmis , ancak .pid dosyasi
> >dosya sisteminizde mevcut gibi.
> >(/var/run veya /var/lock altinda bir bakin , o dosyanin icinde bir
> >zamanlar calisan
> >squid'in Process ID'sini gorebilirsiniz.)
> >O dosyayi silince bu hatayi vermemesi gerekir.
> >
> >Bulent Tatlidil
> >
> >
> >
> >
>
>

--
Sets WarLIq
Subicon Network
Database & Technical Administrator
Security & Project Coordinator


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.