From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jun 19 14:58:14 2014 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 373FFB1A for ; Thu, 19 Jun 2014 14:58:14 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 04EBA2927 for ; Thu, 19 Jun 2014 14:58:14 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.8/8.14.8) with ESMTP id s5JEwDHL094023 for ; Thu, 19 Jun 2014 15:58:13 +0100 (BST) (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 191187] New: irc/inspircd startup may fail if compiled with postgresql support Date: Thu, 19 Jun 2014 14:58:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: lidl@pix.net X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2014 14:58:14 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191187 Bug ID: 191187 Summary: irc/inspircd startup may fail if compiled with postgresql support Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: Needs Triage Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: lidl@pix.net I have been using the inspircd daemon to run an internal IRC server. It's been working great. I have compiled it with the PGSQL support, so I can authenticate against users whose data is in the database, so I don't have to restart the IRC server to add new users. This has also been working great. I noticed today, when rebooting the machine, after applying the latest binary updates from 'freebsd-update', that the inspircd daemon failed to restart properly. In /var/log/messages, I see: Jun 19 14:27:08 XXXX postgres[1055]: [2-1] FATAL: the database system is starting up Jun 19 14:27:08 XXXX kernel: pid 1041 (inspircd), uid 72: exited on signal 11 The basic problem is that inspircd can be started before the postgresql daemon, or before the postgresql daemon is ready to serve data. And when that heppens, inspircd just core dumps. I was able to edit the /usr/local/etc/rc.d/inspircd file to list postgresql as a prerequisite for inspircd, and now it starts properly: *** /tmp/inspircd.orig Thu Jun 19 14:56:02 2014 --- inspircd Thu Jun 19 14:30:58 2014 *************** *** 3,9 **** # $FreeBSD: head/irc/inspircd/files/inspircd.in 343571 2014-02-10 01:46:33Z feld $ # # PROVIDE: inspircd ! # REQUIRE: DAEMON # BEFORE: LOGIN # KEYWORD: shutdown --- 3,9 ---- # $FreeBSD: head/irc/inspircd/files/inspircd.in 343571 2014-02-10 01:46:33Z feld $ # # PROVIDE: inspircd ! # REQUIRE: DAEMON postgresql # BEFORE: LOGIN # KEYWORD: shutdown It would be nice if the inspircd port would adjust the startup file if PGSQL was set as an option. I would guess that a similar problem exists for MYSQL support too. Thanks! -- You are receiving this mail because: You are the assignee for the bug.