From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/934 Path: news.gmane.org!not-for-mail From: Joshua N Pritikin Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: svlogd choaking on lock Date: Wed, 7 Dec 2005 23:08:58 +0530 Message-ID: <20051207173858.GH10371@always.joy.eth.net> References: <20051207120542.GF10371@always.joy.eth.net> <200512071824.46696.graf@augensalat.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CEUtFxTsmBsHRLs3" X-Trace: sea.gmane.org 1133977093 9220 80.91.229.2 (7 Dec 2005 17:38:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Dec 2005 17:38:13 +0000 (UTC) Cc: supervision@list.skarnet.org Original-X-From: supervision-return-1170-gcsg-supervision=m.gmane.org@list.skarnet.org Wed Dec 07 18:38:11 2005 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1Ek3BL-0005Py-Do for gcsg-supervision@gmane.org; Wed, 07 Dec 2005 18:34:20 +0100 Original-Received: (qmail 352 invoked by uid 76); 7 Dec 2005 17:34:41 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 346 invoked from network); 7 Dec 2005 17:34:40 -0000 Original-To: Bernhard Graf Content-Disposition: inline In-Reply-To: <200512071824.46696.graf@augensalat.de> X-PGP-Key: 06E3 3D22 D307 AAE6 ACB4 6B44 A9CA A794 A4A6 0BBD X-Request-PGP: http://openheartlogic.org/personal/pubkey.asc User-Agent: Mutt/1.5.4i Xref: news.gmane.org gmane.comp.sysutils.supervision.general:934 Archived-At: --CEUtFxTsmBsHRLs3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 07, 2005 at 06:24:46PM +0100, Bernhard Graf wrote: > On Wednesday 07 December 2005 13:05, Joshua N Pritikin wrote: > > [...] I figured out > > how to route the ErrorLog through /dev/fd/3 [...] >=20 > namely? Well, the obvious part is the apache2 conf: ErrorLog /dev/fd/3 And run script is: exec /usr/sbin/apache2 -DNO_DETACH -E /dev/fd/1 3>&1 This has the nice property that the -E output goes through the same pipe as the error log. Sometimes I don't get a clean restart for whatever reason, so I added a finish script: sleep 5 rm -f /var/log/apache2/error/lock # maybe not needed pkill -9 apache2 And the log script is as usual: exec svlogd -tt /var/log/apache2/error I like -tt because modperl warnings don't otherwise get a timestamp. --=20 Make April 15 just another day, visit http://fairtax.org --CEUtFxTsmBsHRLs3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFDlx4yqcqnlKSmC70RAkL+AJ4iqFUc8cWS8wkQDguOjo5RM7MFlQCdGixp WR5u8mwwVm1riZr1u56naFQ= =Iv7a -----END PGP SIGNATURE----- --CEUtFxTsmBsHRLs3--