You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Perrin Harkins <pe...@elem.com> on 2006/03/01 22:46:14 UTC
Re: 3 questions: start/stop/restart ; db ; startup.pl
On Fri, 2006-02-24 at 21:38 -0500, Jonathan Vanasco wrote:
> i seem too often to be unable to do a restart of apache. instead of
> a restart, I need to stop, then start, otherwise my startup.pl file
> yells at me.
What's the error message?
> on my production box, during a start, i sometime get this:
> >> DBI connect('xxx','xxx',...) failed: Lost connection to MySQL
> server during query
> on the first startup. if i start again, it works.
Are you opening a database connection during startup and then using it
from multiple child processes? That could cause this.
> finally, because i use a startup.pl in apache, i've noticed that
> even an apache stop will run it.
No, stopping apache will not run your startup.pl. What makes you think
it is running?
- Perrin