From owner-freebsd-questions@FreeBSD.ORG Fri Sep 10 14:03:25 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B7A3016A4D0 for ; Fri, 10 Sep 2004 14:03:25 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3CFC43D46 for ; Fri, 10 Sep 2004 14:03:24 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i8AE3IJh052460 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 10 Sep 2004 15:03:18 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)i8AE3Ifb052459; Fri, 10 Sep 2004 15:03:18 +0100 (BST) (envelope-from matthew) Date: Fri, 10 Sep 2004 15:03:18 +0100 From: Matthew Seaman To: redmyrlin@eml.cc Message-ID: <20040910140318.GB50475@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , redmyrlin@eml.cc, freebsd-questions@freebsd.org References: <4141AD8F.9080003@eml.cc> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gatW/ieO32f1wygP" Content-Disposition: inline In-Reply-To: <4141AD8F.9080003@eml.cc> User-Agent: Mutt/1.4.2.1i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (smtp.infracaninophile.co.uk [IPv6:::1]); Fri, 10 Sep 2004 15:03:18 +0100 (BST) X-Virus-Scanned: clamd / ClamAV version devel-20040904, clamav-milter version 0.75l on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: Problems with newsyslog X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Sep 2004 14:03:26 -0000 --gatW/ieO32f1wygP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 10, 2004 at 02:35:11PM +0100, redmyrlin@eml.cc wrote: > I have just acquired a new virtual server and have set up newsyslog.conf= =20 > to mirror that on my old virtual server. On my old server the logs are= =20 > rotated and compressed without any problems. The old server runs=20 > FreeBSD 4.9. >=20 > The new server runs FreeBSD 4.10, and I'm getting the following errors=20 > reported by Cron > ------- > newsyslog: can't notify daemon, pid 84000: Operation not permitted > newsyslog: log /var/log/maillog.0 not compressed because daemon(s) not=20 > notified > newsyslog: can't notify daemon, pid 43506: Operation not permitted > newsyslog: log /var/log/ssl_engine_log.0 not compressed because=20 > daemon(s) not notified > ... > ------ >=20 > pid 84000 refers to /usr/sbin/syslogd -s > pid 43506 refers to /usr/local/sbin/httpd -DSSL >=20 > I cannot see any difference in way I have setup newsyslog and am at a=20 > loss to know how to proceed. >=20 > Any help would be greatly appreciated. Usually this error message means that the daemon in question has died or in some way been restarted so that the PID number that newsyslog reads out of one of the files under /var/run has become bogus (in this case. /var/run/sendmail.pid or /var/run/httpd.pid). However, if sendmail or apache httpd are running, and you haven't specifically configured them not to, then they will write their PIDs into those files. The other possibility is that you are trying to run newsyslog using a non-root UID, which means it will not be permitted to send signals to arbitrary processes, or that the newsyslog process does not have sufficient privileges to read those PID files. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --gatW/ieO32f1wygP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBQbQmiD657aJF7eIRAq/LAJ4xVDPlkkgpB0mBjZy9nGcseTBEfQCgmi75 nGAZe21WC7ejszJeXw0Oxyo= =Ivfi -----END PGP SIGNATURE----- --gatW/ieO32f1wygP--