Gentoo Archives: gentoo-user

From: Todd Goodman <tsg@×××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] apache2 not running (no pid file)
Date: Tue, 13 Dec 2011 19:56:04
Message-Id: 20111213192057.GP11346@ns1.bonedaddy.net
In Reply to: [gentoo-user] apache2 not running (no pid file) by Grant
1 * Grant <emailgrant@×××××.com> [111213 14:07]:
2 > Has anyone else noticed this sort of behavior from apache-2.2.21-r1:
3 >
4 > # /etc/init.d/apache2 restart
5 > * Stopping apache2 ... [ ok ]
6 > * Starting apache2 ...
7 > * start-stop-daemon: /usr/sbin/apache2 is already running [ ok ]
8 > # /etc/init.d/apache2 restart
9 > * apache2 not running (no pid file)
10 > * Starting apache2 ... [ ok ]
11 >
12 > It probably happens about half the time I restart apache2. Nothing in
13 > /var/log/apache2/error_log besides:
14 >
15 > [notice] caught SIGTERM, shutting down
16 > [notice] Apache/2.2.21 (Unix) configured -- resuming normal operations
17 >
18 > - Grant
19
20 I've seen that for years. I always assumed it was because the apache2
21 stop didn't complete before the apache2 start tried to start when I use
22 /etc/init.d/apache2 restart.
23
24 Instead I do an /etc/init.d/apache2 stop; ps aux | egrep apache until I
25 see all the threads are gone and then a /etc/init.d/apache2 start
26
27 Todd

Replies

Subject Author
Re: [gentoo-user] apache2 not running (no pid file) Mick <michaelkintzios@×××××.com>