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 |