ports/119247: net-im/jabberd startup script doesn't use "REQUIRE: mysql" when mysql enabled

Mike Andrews mandrews at bit0.com
Wed Jan 2 08:00:02 UTC 2008


>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 at 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:



More information about the freebsd-ports-bugs mailing list