Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Nov 2006 21:34:11 +0200 (EET)
From:      Dmitry Pryanishnikov <dmitry@atlantis.dp.ua>
To:        Doug Barton <dougb@FreeBSD.org>
Cc:        ports@FreeBSD.org, ache@FreeBSD.org, Alex Dupre <ale@FreeBSD.org>
Subject:   Re: apache + php + mysql startup order
Message-ID:  <20061130211623.W96066@atlantis.atlantis.dp.ua>
In-Reply-To: <456F22EC.1030106@FreeBSD.org>
References:  <20061130103911.E14131@atlantis.atlantis.dp.ua> <456EA5DD.1040608@FreeBSD.org> <456F22EC.1030106@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

Hello!

On Thu, 30 Nov 2006, Doug Barton wrote:
>> Since apache runs as www user, it should require LOGIN, as mysql do.
>
> Agreed.

  It would be nice!

> As for the OP's original question, there is no reason you can't change
> the REQUIRE lines in the rc.d scripts yourself. Have your -check
> script require LOGIN, then have the mysql script require your -check
> script, and have apache require mysql.

   Actually, just having the following:

# BEFORE:  apache
# REQUIRE: mysql

in -check script forces correct order (mysql-server -> mysql-check ->
apache.sh) despite issuing an error message about the circular dependency.
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 world) not to keep local fixes for obvious bugs (and reapply them
during every [re]install of apache), but to report them upstream instead.

> hth,
>
> Doug

Sincerely, Dmitry
-- 
Atlantis ISP, System Administrator
e-mail:  dmitry@atlantis.dp.ua
nic-hdl: LYNX-RIPE



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061130211623.W96066>