From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Apr 7 15:40:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BBA73FA2 for ; Mon, 7 Apr 2014 15:40:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8E620E40 for ; Mon, 7 Apr 2014 15:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s37Fe0jH057158 for ; Mon, 7 Apr 2014 15:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s37Fe042057157; Mon, 7 Apr 2014 15:40:00 GMT (envelope-from gnats) Resent-Date: Mon, 7 Apr 2014 15:40:00 GMT Resent-Message-Id: <201404071540.s37Fe042057157@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mathieu Arnold Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 077979CA for ; Mon, 7 Apr 2014 15:30:02 +0000 (UTC) Received: from prod2.absolight.net (mx3.absolight.net [IPv6:2a01:678:2:100::25]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "plouf.absolight.net", Issuer "CAcert Class 3 Root" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id BC0D2D48 for ; Mon, 7 Apr 2014 15:30:01 +0000 (UTC) Received: from prod2.absolight.net (localhost [127.0.0.1]) by prod2.absolight.net (Postfix) with ESMTP id 6F642BDC7A for ; Mon, 7 Apr 2014 17:29:59 +0200 (CEST) Received: from gw.in.absolight.net (gw-ecl.in.absolight.net [79.143.241.69]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "gw.in.absolight.net", Issuer "CA Cert Signing Authority" (not verified)) by prod2.absolight.net (Postfix) with ESMTPSA id 4F7EBBDC24 for ; Mon, 7 Apr 2014 17:29:59 +0200 (CEST) Received: from aragorn.in.absolight.net (aragorn.in.absolight.net [79.143.241.225]) by gw.in.absolight.net (Postfix) with ESMTP id 931206122 for ; Mon, 7 Apr 2014 17:29:58 +0200 (CEST) Received: by aragorn.in.absolight.net (Postfix, from userid 1000) id D133514269E; Mon, 7 Apr 2014 17:29:57 +0200 (CEST) Message-Id: <20140407152957.D133514269E@aragorn.in.absolight.net> Date: Mon, 7 Apr 2014 17:29:57 +0200 (CEST) From: Mathieu Arnold To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/188352: databases/mysql55-server rc script returns before mysqld is running. X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Mathieu Arnold List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Apr 2014 15:40:00 -0000 >Number: 188352 >Category: ports >Synopsis: databases/mysql55-server rc script returns before mysqld is running. >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Apr 07 15:40:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Mathieu Arnold >Release: FreeBSD 10.0-RELEASE i386 >Organization: Absolight >Environment: System: FreeBSD aragorn.in.absolight.net 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Fri Jan 17 01:46:25 UTC 2014 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386 >Description: At startup, the mysql-server rc script returns a few seconds before the mysql server is really up, running and able to accept connections requests. >How-To-Repeat: Install mysql*-server any port that needs it and reboot. The ones I have problems with are: ports-mgmt/tinderbox on the redports cluster, where I added a dummy rc script with a sleep 10 that REQUIRES: mysql-server and BEFORE: tinderd. dns/opendnssec on my company's DNS servers, I rebooted it today, one of the daemons that come with it exited with: Apr 7 17:05:39 ns1 ods-enforcerd: ERROR: unable to connect to database - Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) >Fix: In the mysql_poststart function, maybe test for /tmp/mysql.sock's existence, and that a server is accepting connections with it, or something. >Release-Note: >Audit-Trail: >Unformatted: