Skip site navigation (1)Skip section navigation (2)
Date:      Wed,  2 Jan 2008 02:40:48 -0500 (EST)
From:      Mike Andrews <mandrews@bit0.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/119247: net-im/jabberd startup script doesn't use "REQUIRE: mysql" when mysql enabled
Message-ID:  <20080102074048.3DEBC1E33C1@mindcrime.bit0.com>
Resent-Message-ID: <200801020800.m02802dJ094941@freefall.freebsd.org>

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

>Number:         119247
>Category:       ports
>Synopsis:       net-im/jabberd startup script doesn't use "REQUIRE: mysql" when mysql enabled
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 02 08:00:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Mike Andrews
>Release:        FreeBSD 7.0-RC1 amd64
>Organization:
>Environment:
System: FreeBSD mindcrime.int.bit0.com 7.0-RC1 FreeBSD 7.0-RC1 #16: Mon Dec 24 21:16:22 EST 2007 mandrews@mindcrime.int.bit0.com:/usr/obj/usr/src/sys/MINDCRIME amd64


>Description:
	The net-im/jabberd port installs /usr/local/etc/rc.d/jabberd with
	a standard "REQUIRE: DAEMON" line.

	net-im/jabberd has numerous storage backend knobs: MySQL, Postgres,
	BDB, SQlite, LDAP, etc.  Enabling a backend that requires a separate
	daemon to be running, including the default MySQL, should add that
	to the REQUIRE: line so that the backend starts before jabberd.

	Currently, jabberd fails to start when the system boots because rcorder
	places mysql-server after jabberd.

>How-To-Repeat:
	Install net-im/jabberd port, configure it with MySQL as the backend,
	and reboot: jabberd will try and fail to start before mysql-server

>Fix:
	Modify files/jabberd.in and the Makefile and whatever else is needed
	to tweak the REQUIRE: line based on the selected storage backend.
	(unless it doesn't need a daemon running, like SQLite or BDB)

	The net/freeradius port has some logic to do this, so that could be
	the basis for creating a patch.  I'm not completely up on all the
	different rcorder keywords so I haven't created a patch myself.

>Release-Note:
>Audit-Trail:
>Unformatted:



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