From owner-freebsd-questions@FreeBSD.ORG Mon Feb 20 17:52:07 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4CAF9106566B for ; Mon, 20 Feb 2012 17:52:07 +0000 (UTC) (envelope-from alexus@gmail.com) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id C778F8FC13 for ; Mon, 20 Feb 2012 17:52:06 +0000 (UTC) Received: by wibhn14 with SMTP id hn14so4824838wib.13 for ; Mon, 20 Feb 2012 09:52:05 -0800 (PST) Received-SPF: pass (google.com: domain of alexus@gmail.com designates 10.180.104.4 as permitted sender) client-ip=10.180.104.4; Authentication-Results: mr.google.com; spf=pass (google.com: domain of alexus@gmail.com designates 10.180.104.4 as permitted sender) smtp.mail=alexus@gmail.com; dkim=pass header.i=alexus@gmail.com Received: from mr.google.com ([10.180.104.4]) by 10.180.104.4 with SMTP id ga4mr20273789wib.17.1329760325846 (num_hops = 1); Mon, 20 Feb 2012 09:52:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=toJXnnudx12JIfS+wa+5L/qr5ShNkUIV2LMJpxFNBpA=; b=LH8frAXAeeunVLvvr1nW5GNTJDJMtmTI2Uu2YcvJ6FPtfO54wwoS32JzehYlshAYFq HiIDMOxPMG6hAZ0PwR2zAYjlUr9KUuRj1RxtvJjtMM3dOQo0jzCGp9CywIebjIWoyRX8 smpsKipqYFjcyEMVDrPnV+8O1TjYhmAbwqj4w= MIME-Version: 1.0 Received: by 10.180.104.4 with SMTP id ga4mr16966035wib.17.1329760325767; Mon, 20 Feb 2012 09:52:05 -0800 (PST) Received: by 10.216.186.141 with HTTP; Mon, 20 Feb 2012 09:52:05 -0800 (PST) In-Reply-To: <4F42874B.3010404@infracaninophile.co.uk> References: <4F4281C9.9060601@infracaninophile.co.uk> <4F42874B.3010404@infracaninophile.co.uk> Date: Mon, 20 Feb 2012 12:52:05 -0500 Message-ID: From: alexus To: Matthew Seaman Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: newsyslog-local.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Feb 2012 17:52:07 -0000 what else I can do then? i don't need syslogd.. this is vm, it runs nothing but squid, squid generates its own logging, so no reason to run syslogd On Mon, Feb 20, 2012 at 12:47 PM, Matthew Seaman wrote: > On 20/02/2012 17:29, alexus wrote: >> /var/log/squid/access.log <7J>: --> will trim at Tue Feb 21 00:00:00 201= 2 >> /var/log/squid/cache.log <7J>: --> will trim at Tue Feb 21 00:00:00 2012 > > OK -- this looks fine. =C2=A0It should cycle the log files overnight. > > Presumably you first setup the cycling of the squid logfiles yesterday > and your post was prompted by the logs not being recycled last night? > (Yes, that's insultingly obvious, but worth eliminating as a possibility.= ) > >> Signal all daemon process(es)... >> =C2=A0 =C2=A0 =C2=A0 sleep 10 >> s# >> >> one thing that I noticed: >> newsyslog: pid file doesn't exist: /var/run/syslog.pid >> >> s# grep ^syslogd /etc/rc.conf >> syslogd_enable=3D"NO" >> s# >> >> does syslogd has be run for newsyslog to operate? > > No, syslogd doesn't /need/ to be running, but newsyslog assumes that a > logfile is generated by syslogd unless configured otherwise -- ie. to > signal the pid of a different process. =C2=A0You'll get errors like you'v= e > seen if syslogd isn't running, but they should be innocuous. > > Mind you, not running syslogd is a pretty unusual management decision; > I'd turn it on if I were you, as it's the first recourse whenever > anything goes wrong. > > =C2=A0 =C2=A0 =C2=A0 =C2=A0Cheers, > > =C2=A0 =C2=A0 =C2=A0 =C2=A0Matthew > > -- > Dr Matthew J Seaman MA, D.Phil. =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 7 Priory Courtyard > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0Flat 3 > PGP: http://www.infracaninophile.co.uk/pgpkey =C2=A0 =C2=A0 Ramsgate > JID: matthew@infracaninophile.co.uk =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 Kent, CT11 9PW > --=20 http://alexus.org/