From nobody@FreeBSD.org  Sun Jan  4 10:29:13 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 097A6106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  4 Jan 2009 10:29:13 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id EC78E8FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  4 Jan 2009 10:29:12 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n04ATCqG040833
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 4 Jan 2009 10:29:12 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n04ATCIv040832;
	Sun, 4 Jan 2009 10:29:12 GMT
	(envelope-from nobody)
Message-Id: <200901041029.n04ATCIv040832@www.freebsd.org>
Date: Sun, 4 Jan 2009 10:29:12 GMT
From: Morgan Wesstrm <freebsd-ports-bugs@pp.dyndns.biz>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Wrong rc start order - verlihub and mysql
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: skylord@vt.net.ru

>Number:         130157
>Category:       ports
>Synopsis:       net-p2p/verlihub - Wrong rc start order - verlihub and mysql
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    amdmi3
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 04 10:30:03 UTC 2009
>Closed-Date:    Sun Jan 11 22:49:38 UTC 2009
>Last-Modified:  Sun Jan 11 22:50:01 UTC 2009
>Originator:     Morgan Wesstrm
>Release:        FreeBSD 7.0-RELEASE #0
>Organization:
>Environment:
FreeBSD freebsd.pp.dyndns.biz 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
net-p2p/verlihub is dependent on a working MySQL-server but Verlihub's startup script is missing that information so rc starts Verlihub before MySQL which doesn't work.
>How-To-Repeat:
Install databases/mysql51-server and net-p2p/verlihub from ports. Configure both applications and add them to /etc/rc.conf and reboot. Verlihub will start before MySQL and exit.
>Fix:
This small patch to Verlihub's startup script solves the problem:

--- verlihub.orig	2009-01-04 11:10:23.000000000 +0100
+++ verlihub	2009-01-04 11:10:32.000000000 +0100
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 # PROVIDE: verlihub
-# REQUIRE: DAEMON
+# REQUIRE: DAEMON mysql
 #
 # Add the following lines to /etc/rc.conf.local or /etc/rc.conf
 # to enable this service:

However, I don't know if it's correct to add "mysql" to Verlihub's REQUIRE or add "DAEMON" to MYSQL's PROVIDE or maybe even some third alternative.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Sun Jan 4 10:50:58 UTC 2009 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=130157 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: skylord@vt.net.ru
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/130157: net-p2p/verlihub - Wrong rc start order - verlihub and mysql
Date: Sun, 4 Jan 2009 10:50:54 UT

 Maintainer of net-p2p/verlihub,
 
 Please note that PR ports/130157 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/130157
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: "Mikle Davidkin" <skylord@linkline.ru>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/130157: net-p2p/verlihub - Wrong rc start order - 
     verlihub and mysql
Date: Sat, 10 Jan 2009 22:50:09 +0300 (MSK)

 Small but needed fix! Works OK - suggested patch surely needs to be
 commited....
 
State-Changed-From-To: feedback->open 
State-Changed-By: linimon 
State-Changed-When: Sat Jan 10 20:28:33 UTC 2009 
State-Changed-Why:  
Maintainer approved. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=130157 
Responsible-Changed-From-To: freebsd-ports-bugs->amdmi3 
Responsible-Changed-By: amdmi3 
Responsible-Changed-When: Sun Jan 11 15:28:24 UTC 2009 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=130157 
State-Changed-From-To: open->closed 
State-Changed-By: amdmi3 
State-Changed-When: Sun Jan 11 22:49:36 UTC 2009 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=130157 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/130157: commit references a PR
Date: Sun, 11 Jan 2009 22:49:41 +0000 (UTC)

 amdmi3      2009-01-11 22:49:27 UTC
 
   FreeBSD ports repository
 
   Modified files:
     net-p2p/verlihub     Makefile 
     net-p2p/verlihub/files verlihub.in 
   Log:
   - Add mysql dependency to the rc script
   
   PR:             130157
   Submitted by:   Morgan Wesström <freebsd-ports-bugs at pp dot dyndns dot biz>
   Approved by:    "Mikle Davidkin" <skylord at linkline dot ru> (maintainer)
   
   Revision  Changes    Path
   1.25      +1 -1      ports/net-p2p/verlihub/Makefile
   1.2       +1 -1      ports/net-p2p/verlihub/files/verlihub.in
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
