From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Rbc1v-0003k8-NF for garchives@archives.gentoo.org; Fri, 16 Dec 2011 17:57:11 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A487E21C279; Fri, 16 Dec 2011 17:56:48 +0000 (UTC) Received: from mail-ww0-f53.google.com (mail-ww0-f53.google.com [74.125.82.53]) by pigeon.gentoo.org (Postfix) with ESMTP id D03B121C278 for ; Fri, 16 Dec 2011 17:54:56 +0000 (UTC) Received: by wgbds1 with SMTP id ds1so5956992wgb.10 for ; Fri, 16 Dec 2011 09:54:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:reply-to:to:subject:date:user-agent:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; bh=rQ2mI7PkE06vD2zgvHz9x2guSGuCOL/XTz8WDNg0OrA=; b=ozMl2WBZIaCdJ/4P+/xvXWuJoQ79BDAyG3QehGtkH5T3c0ZhsWHTrgIXtU4K8W1rPO f+fndNVAYjSP0vVzlAHJwTyX971NBawgC+mZpGw32f4HHFtP3cRjWg3RkMXMsuxdY+TH S9snZ5CGX9R84P2ktbBO2KbPRCm763S/kM7z4= Received: by 10.227.206.66 with SMTP id ft2mr6390009wbb.8.1324058096093; Fri, 16 Dec 2011 09:54:56 -0800 (PST) Received: from dell_xps.localnet (230.3.169.217.in-addr.arpa. [217.169.3.230]) by mx.google.com with ESMTPS id di5sm14041467wib.3.2011.12.16.09.54.54 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 16 Dec 2011 09:54:55 -0800 (PST) From: Mick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] apache2 not running (no pid file) Date: Fri, 16 Dec 2011 17:54:53 +0000 User-Agent: KMail/1.13.7 (Linux/3.0.6-gentoo; KDE/4.6.5; x86_64; ; ) References: <20111213192057.GP11346@ns1.bonedaddy.net> In-Reply-To: <20111213192057.GP11346@ns1.bonedaddy.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1836047.YLXr4lIqix"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201112161754.55740.michaelkintzios@gmail.com> X-Archives-Salt: 5cad48d9-910d-4242-be5b-4bd093a29b0d X-Archives-Hash: 059ef51bfddbf6d917d55adb5077c47a --nextPart1836047.YLXr4lIqix Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Tuesday 13 Dec 2011 19:20:57 Todd Goodman wrote: > * Grant [111213 14:07]: > > Has anyone else noticed this sort of behavior from apache-2.2.21-r1: > >=20 > > # /etc/init.d/apache2 restart > >=20 > > * Stopping apache2 ... [ ok ] > > * Starting apache2 ... > > * start-stop-daemon: /usr/sbin/apache2 is already running [ ok ] > >=20 > > # /etc/init.d/apache2 restart > >=20 > > * apache2 not running (no pid file) > > * Starting apache2 ... [ ok ] > >=20 > > It probably happens about half the time I restart apache2. Nothing in > > /var/log/apache2/error_log besides: > >=20 > > [notice] caught SIGTERM, shutting down > > [notice] Apache/2.2.21 (Unix) configured -- resuming normal operations > >=20 > > - Grant >=20 > I've seen that for years. I always assumed it was because the apache2 > stop didn't complete before the apache2 start tried to start when I use > /etc/init.d/apache2 restart. >=20 > Instead I do an /etc/init.d/apache2 stop; ps aux | egrep apache until I > see all the threads are gone and then a /etc/init.d/apache2 start +1 If there aren't many threads a quick restart will work fine, but if there a= re=20 many threads hanging around then you may be better off to stop, wait, then= =20 start. =2D-=20 Regards, Mick --nextPart1836047.YLXr4lIqix Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iEYEABECAAYFAk7rhe8ACgkQVTDTR3kpaLZ+TACePI6ZLEoVFxvtgTyFiFwX+8aG TLIAn29wukqSJ2TQWG7cXvi6t137EOw+ =5DMF -----END PGP SIGNATURE----- --nextPart1836047.YLXr4lIqix--