ports/130157: Wrong rc start order - verlihub and mysql

Morgan Wesström freebsd-ports-bugs at pp.dyndns.biz
Sun Jan 4 10:30:04 UTC 2009


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



More information about the freebsd-ports-bugs mailing list