From owner-freebsd-questions@FreeBSD.ORG Mon Feb 20 17:47:59 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 D96471065672 for ; Mon, 20 Feb 2012 17:47:59 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 634ED8FC1A for ; Mon, 20 Feb 2012 17:47:59 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [IPv6:2001:8b0:151:1:fa1e:dfff:feda:c0bb]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id q1KHltPc018722 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 20 Feb 2012 17:47:56 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: OpenDKIM Filter v2.4.3 smtp.infracaninophile.co.uk q1KHltPc018722 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1329760076; bh=qfrC2O9VhTfcxwTX7/hWtcgTeKEYP27c0zLFCbPm6sE=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type; b=JjC/Dsec5RhsGaq+/k1ieSRJTX8qeyFWx7T9lze8kI0+rmrZw8cDMCxzkqf1XQXJJ iou4t8flj+gj6LwmQztIcVuXSvChGrFR4QwbW76smod7DfA8IR1pmsAoQFfXD7ZYxt zj09UL0yywNGf8wZBszUDuyt6MJmnfoh9ZPKWt1A= Message-ID: <4F42874B.3010404@infracaninophile.co.uk> Date: Mon, 20 Feb 2012 17:47:55 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: alexus References: <4F4281C9.9060601@infracaninophile.co.uk> In-Reply-To: X-Enigmail-Version: 1.3.5 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig1D6DE4CAC3795264874F323B" X-Virus-Scanned: clamav-milter 0.97.3 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk 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:48:00 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1D6DE4CAC3795264874F323B Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 20/02/2012 17:29, alexus wrote: > /var/log/squid/access.log <7J>: --> will trim at Tue Feb 21 00:00:00 20= 12 > /var/log/squid/cache.log <7J>: --> will trim at Tue Feb 21 00:00:00 201= 2 OK -- this looks fine. It 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)... > sleep 10 > s# >=20 > one thing that I noticed: > newsyslog: pid file doesn't exist: /var/run/syslog.pid >=20 > s# grep ^syslogd /etc/rc.conf > syslogd_enable=3D"NO" > s# >=20 > 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. You'll get errors like you've 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. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enig1D6DE4CAC3795264874F323B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9Ch0sACgkQ8Mjk52CukIyT6QCeNw/yMV6/ayhWRGpEzKMF6H9Q AukAoJO35lrSOc8556mtv6pLFjHXN5XJ =+TU9 -----END PGP SIGNATURE----- --------------enig1D6DE4CAC3795264874F323B--