Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Dec 2010 19:05:00 GMT
From:      Steve Wills <steve@mouf.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/153296: [PATCH] include pidfile in rc script of databases/mysql51-server
Message-ID:  <201012191905.oBJJ50F0060184@red.freebsd.org>
Resent-Message-ID: <201012191910.oBJJA5vV057436@freefall.freebsd.org>

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

>Number:         153296
>Category:       ports
>Synopsis:       [PATCH] include pidfile in rc script of databases/mysql51-server
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 19 19:10:04 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Steve Wills
>Release:        8.2-PRERELEASE
>Organization:
>Environment:
>Description:
Recent changes to the rc script for mysql removed the pidfile, causing rc.subr to search for mysqld via name. This causes it to find mysql processes it shouldn't find, such as those running outside or inside a chroot or those created by akonadi. Putting the pidfile back fixes it.
>How-To-Repeat:
deinstall mysql while running kde4 and/or inside a ports tinderbox
>Fix:
See attached patch

Patch attached with submission follows:

Index: files/mysql-server.sh.in
===================================================================
RCS file: /home/ncvs/ports/databases/mysql51-server/files/mysql-server.sh.in,v
retrieving revision 1.9
diff -u -r1.9 mysql-server.sh.in
--- files/mysql-server.sh.in	16 Dec 2010 08:27:58 -0000	1.9
+++ files/mysql-server.sh.in	19 Dec 2010 16:53:52 -0000
@@ -37,6 +37,7 @@
 
 mysql_user="mysql"
 mysql_limits_args="-e -U ${mysql_user}"
+pidfile=${mysql_pidfile}
 command="/usr/sbin/daemon"
 command_args="-c -f %%PREFIX%%/bin/mysqld_safe --defaults-extra-file=${mysql_dbdir}/my.cnf --user=${mysql_user} --datadir=${mysql_dbdir} --pid-file=${mysql_pidfile} ${mysql_args}"
 procname="%%PREFIX%%/libexec/mysqld"


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



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