Re: apache + php + mysql startup order

2006-12-07 Thread Dmitry Pryanishnikov
Hello! On Fri, 1 Dec 2006, Vasil Dimov wrote: On Thu, Nov 30, 2006 at 09:34:11PM +0200, Dmitry Pryanishnikov wrote: And yes, I can just replace # REQUIRE: DAEMON # BEFORE: LOGIN with # REQUIRE: LOGIN in apache.sh, and all works correctly. Yet I prefer (as usually in open-source software

apache + php + mysql startup order

2006-11-30 Thread Dmitry Pryanishnikov
Hello! I'm trying to write an automated rc.d-script that should check MySQL database before it's used by the Apache+PHP hosting. So I've added a simple script with the following block: # PROVIDE: mysql-check # BEFORE: apache # REQUIRE: mysql This gives rcorder's warning: rcorder:

Re: apache + php + mysql startup order

2006-11-30 Thread Andrew Pantyukhin
On 11/30/06, Dmitry Pryanishnikov [EMAIL PROTECTED] wrote: Hello! I'm trying to write an automated rc.d-script that should check MySQL database before it's used by the Apache+PHP hosting. If I were you, I'd make my php scripts handle temporary db outages. Don't forget that most hosting

Re: apache + php + mysql startup order

2006-11-30 Thread Dmitry Pryanishnikov
Hello! On Thu, 30 Nov 2006, Andrew Pantyukhin wrote: On 11/30/06, Dmitry Pryanishnikov [EMAIL PROTECTED] wrote: I'm trying to write an automated rc.d-script that should check MySQL database before it's used by the Apache+PHP hosting. If I were you, I'd make my php scripts handle temporary

Re: apache + php + mysql startup order

2006-11-30 Thread Vasil Dimov
On Thu, Nov 30, 2006 at 12:07:33PM +0300, Andrew Pantyukhin wrote: On 11/30/06, Dmitry Pryanishnikov [EMAIL PROTECTED] wrote: Hello! I'm trying to write an automated rc.d-script that should check MySQL database before it's used by the Apache+PHP hosting. If I were you, I'd make my php

Re: apache + php + mysql startup order

2006-11-30 Thread Alex Dupre
Dmitry Pryanishnikov ha scritto: 2) either rc.d/apache.sh or rc.d/mysql-server should be changed somehow in order to allow (if not force) to start apache _after_ mysqld. Since apache runs as www user, it should require LOGIN, as mysql do. -- Alex Dupre

Re: apache + php + mysql startup order

2006-11-30 Thread Doug Barton
Alex Dupre wrote: Dmitry Pryanishnikov ha scritto: 2) either rc.d/apache.sh or rc.d/mysql-server should be changed somehow in order to allow (if not force) to start apache _after_ mysqld. Since apache runs as www user, it should require LOGIN, as mysql do. Agreed. As for the OP's