From owner-freebsd-ports@FreeBSD.ORG Thu Nov 30 08:51: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 44B1B16A415 for ; Thu, 30 Nov 2006 08:51: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 DEDF643CA6 for ; Thu, 30 Nov 2006 08:50:53 +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 kAU8oqtG089801 for ; Thu, 30 Nov 2006 10:50:52 +0200 (EET) (envelope-from dmitry@atlantis.dp.ua) Date: Thu, 30 Nov 2006 10:50:52 +0200 (EET) From: Dmitry Pryanishnikov To: ports@freebsd.org Message-ID: <20061130103911.E14131@atlantis.atlantis.dp.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Subject: 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 08:51:01 -0000 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: Circular dependency on provision `LOGIN' in file `/usr/local/etc/rc.d/mysql-server'. yet forces the correct order: /usr/local/etc/rc.d/mysql-server /usr/local/etc/rc.d/mysql-check /usr/local/etc/rc.d/apache.sh Without this rc.d-file, apache starts before MySQL (since apache.sh contains "# BEFORE: LOGIN" and mysql-server contains "# REQUIRE: LOGIN"). This default order makes no sence to me: why to start apache if it can't correctly serve the hosting w/o working MySQL server? So I feel that either 1) I don't understand something trivial, or 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. Sincerely, Dmitry -- Atlantis ISP, System Administrator e-mail: dmitry@atlantis.dp.ua nic-hdl: LYNX-RIPE