From owner-freebsd-ports@FreeBSD.ORG Thu Nov 30 19:39:01 2006 Return-Path: X-Original-To: ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 375A716A407; Thu, 30 Nov 2006 19:39:01 +0000 (UTC) (envelope-from dmitry@atlantis.dp.ua) Received: from postman.atlantis.dp.ua (postman.atlantis.dp.ua [193.108.47.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id CAF0B43E50; Thu, 30 Nov 2006 19:34:32 +0000 (GMT) (envelope-from dmitry@atlantis.dp.ua) Received: from smtp.atlantis.dp.ua (smtp.atlantis.dp.ua [193.108.46.231]) by postman.atlantis.dp.ua (8.13.1/8.13.1) with ESMTP id kAUJYB3m045889; Thu, 30 Nov 2006 21:34:12 +0200 (EET) (envelope-from dmitry@atlantis.dp.ua) Date: Thu, 30 Nov 2006 21:34:11 +0200 (EET) From: Dmitry Pryanishnikov To: Doug Barton In-Reply-To: <456F22EC.1030106@FreeBSD.org> Message-ID: <20061130211623.W96066@atlantis.atlantis.dp.ua> References: <20061130103911.E14131@atlantis.atlantis.dp.ua> <456EA5DD.1040608@FreeBSD.org> <456F22EC.1030106@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: ports@FreeBSD.org, ache@FreeBSD.org, Alex Dupre Subject: Re: apache + php + mysql startup order X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2006 19:39:01 -0000 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