* Re: [gentoo-user] apache2 not running (no pid file)
2011-12-13 19:36 [gentoo-user] apache2 not running (no pid file) Grant
@ 2011-12-13 19:20 ` Todd Goodman
2011-12-16 17:54 ` Mick
0 siblings, 1 reply; 5+ messages in thread
From: Todd Goodman @ 2011-12-13 19:20 UTC (permalink / raw
To: gentoo-user
* Grant <emailgrant@gmail.com> [111213 14:07]:
> Has anyone else noticed this sort of behavior from apache-2.2.21-r1:
>
> # /etc/init.d/apache2 restart
> * Stopping apache2 ... [ ok ]
> * Starting apache2 ...
> * start-stop-daemon: /usr/sbin/apache2 is already running [ ok ]
> # /etc/init.d/apache2 restart
> * apache2 not running (no pid file)
> * Starting apache2 ... [ ok ]
>
> It probably happens about half the time I restart apache2. Nothing in
> /var/log/apache2/error_log besides:
>
> [notice] caught SIGTERM, shutting down
> [notice] Apache/2.2.21 (Unix) configured -- resuming normal operations
>
> - Grant
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.
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
Todd
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-user] apache2 not running (no pid file)
@ 2011-12-13 19:36 Grant
2011-12-13 19:20 ` Todd Goodman
0 siblings, 1 reply; 5+ messages in thread
From: Grant @ 2011-12-13 19:36 UTC (permalink / raw
To: Gentoo mailing list
Has anyone else noticed this sort of behavior from apache-2.2.21-r1:
# /etc/init.d/apache2 restart
* Stopping apache2 ... [ ok ]
* Starting apache2 ...
* start-stop-daemon: /usr/sbin/apache2 is already running [ ok ]
# /etc/init.d/apache2 restart
* apache2 not running (no pid file)
* Starting apache2 ... [ ok ]
It probably happens about half the time I restart apache2. Nothing in
/var/log/apache2/error_log besides:
[notice] caught SIGTERM, shutting down
[notice] Apache/2.2.21 (Unix) configured -- resuming normal operations
- Grant
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] apache2 not running (no pid file)
2011-12-13 19:20 ` Todd Goodman
@ 2011-12-16 17:54 ` Mick
2011-12-16 20:31 ` Grant
0 siblings, 1 reply; 5+ messages in thread
From: Mick @ 2011-12-16 17:54 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: Text/Plain, Size: 1280 bytes --]
On Tuesday 13 Dec 2011 19:20:57 Todd Goodman wrote:
> * Grant <emailgrant@gmail.com> [111213 14:07]:
> > Has anyone else noticed this sort of behavior from apache-2.2.21-r1:
> >
> > # /etc/init.d/apache2 restart
> >
> > * Stopping apache2 ... [ ok ]
> > * Starting apache2 ...
> > * start-stop-daemon: /usr/sbin/apache2 is already running [ ok ]
> >
> > # /etc/init.d/apache2 restart
> >
> > * apache2 not running (no pid file)
> > * Starting apache2 ... [ ok ]
> >
> > It probably happens about half the time I restart apache2. Nothing in
> > /var/log/apache2/error_log besides:
> >
> > [notice] caught SIGTERM, shutting down
> > [notice] Apache/2.2.21 (Unix) configured -- resuming normal operations
> >
> > - Grant
>
> 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.
>
> 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 are
many threads hanging around then you may be better off to stop, wait, then
start.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] apache2 not running (no pid file)
2011-12-16 17:54 ` Mick
@ 2011-12-16 20:31 ` Grant
2011-12-16 21:12 ` Michael Orlitzky
0 siblings, 1 reply; 5+ messages in thread
From: Grant @ 2011-12-16 20:31 UTC (permalink / raw
To: gentoo-user
>> > Has anyone else noticed this sort of behavior from apache-2.2.21-r1:
>> >
>> > # /etc/init.d/apache2 restart
>> >
>> > * Stopping apache2 ... [ ok ]
>> > * Starting apache2 ...
>> > * start-stop-daemon: /usr/sbin/apache2 is already running [ ok ]
>> >
>> > # /etc/init.d/apache2 restart
>> >
>> > * apache2 not running (no pid file)
>> > * Starting apache2 ... [ ok ]
>> >
>> > It probably happens about half the time I restart apache2. Nothing in
>> > /var/log/apache2/error_log besides:
>> >
>> > [notice] caught SIGTERM, shutting down
>> > [notice] Apache/2.2.21 (Unix) configured -- resuming normal operations
>> >
>> > - Grant
>>
>> 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.
>>
>> 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 are
> many threads hanging around then you may be better off to stop, wait, then
> start.
Thanks fellas, that makes perfect sense. Would it make sense for me
to request a change to the initscript that waits until all threads
have stopped before starting during a restart?
- Grant
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] apache2 not running (no pid file)
2011-12-16 20:31 ` Grant
@ 2011-12-16 21:12 ` Michael Orlitzky
0 siblings, 0 replies; 5+ messages in thread
From: Michael Orlitzky @ 2011-12-16 21:12 UTC (permalink / raw
To: gentoo-user
On 12/16/2011 03:31 PM, Grant wrote:
>
> Thanks fellas, that makes perfect sense. Would it make sense for me
> to request a change to the initscript that waits until all threads
> have stopped before starting during a restart?
>
Right now it's dumb in one direction, and I have a feeling that if it
gets "fixed" we'll overshoot "correct" and wind up dumb in the other
direction.
Nevertheless, I've been dealing with this for years and would like to
hear what the devs have to say. So, yeah.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-12-16 21:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-13 19:36 [gentoo-user] apache2 not running (no pid file) Grant
2011-12-13 19:20 ` Todd Goodman
2011-12-16 17:54 ` Mick
2011-12-16 20:31 ` Grant
2011-12-16 21:12 ` Michael Orlitzky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox