Re: Antwort: Re: rotate log problem

From: Jens-S. Voeckler <voeckler@dont-contact.us>
Date: Wed, 31 May 2000 09:31:34 +0200 (CEST)

On Tue, 30 May 2000 SNS@ExperTeam.de wrote:

]# PIDFILE neu schreiben da es ab und zu verschwindet
]ps -ef|grep '(squid)'|grep -v grep|awk '{ print $2 }' >$PIDFILE
]echo "Info: Squid-Logs rotate..."
]$SQUID -k rotate

If you are using Sol7, why don't you use pgrep?

        pgrep '(squid)' > $PIDFILE

Still, I am a little wary of overwriting squid.pid in such a manner. If
your squid.pid content does not match your running copy, something was
severly wrong (e.g. fs full during restart, ownership problems,
writability problems), and should be investigated. I am using Squid on
Sol7, and the pidfile problem only occurs, if s.t. else got screwed up.

Le deagh dhùrachd,
Dipl.-Ing. Jens-S. Vöckler (voeckler@rvs.uni-hannover.de)
Institute for Computer Networks and Distributed Systems
University of Hanover, Germany; +49 511 762 4726
Received on Wed May 31 2000 - 01:34:01 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:53:37 MST