Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Jan 2009 10:29:12 GMT
From:      Morgan Wesström <freebsd-ports-bugs@pp.dyndns.biz>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/130157: Wrong rc start order - verlihub and mysql
Message-ID:  <200901041029.n04ATCIv040832@www.freebsd.org>
Resent-Message-ID: <200901041030.n04AU3kC050221@freefall.freebsd.org>

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

>Number:         130157
>Category:       ports
>Synopsis:       Wrong rc start order - verlihub and mysql
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 04 10:30:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Morgan Wesström
>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:
>Unformatted:



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