From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Oct 6 17:50:25 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 892A71065670 for ; Sat, 6 Oct 2012 17:50:25 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6144A8FC21 for ; Sat, 6 Oct 2012 17:50:25 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q96HoPfx082552 for ; Sat, 6 Oct 2012 17:50:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q96HoPdx082551; Sat, 6 Oct 2012 17:50:25 GMT (envelope-from gnats) Resent-Date: Sat, 6 Oct 2012 17:50:25 GMT Resent-Message-Id: <201210061750.q96HoPdx082551@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Daniel Ylitalo Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 780321065670 for ; Sat, 6 Oct 2012 17:48:38 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 494C28FC0A for ; Sat, 6 Oct 2012 17:48:38 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q96HmcCb087345 for ; Sat, 6 Oct 2012 17:48:38 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id q96HmcJU087344; Sat, 6 Oct 2012 17:48:38 GMT (envelope-from nobody) Message-Id: <201210061748.q96HmcJU087344@red.freebsd.org> Date: Sat, 6 Oct 2012 17:48:38 GMT From: Daniel Ylitalo To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/172408: Allow to specify my.cnf path in /etc/rc.conf X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Oct 2012 17:50:25 -0000 >Number: 172408 >Category: ports >Synopsis: Allow to specify my.cnf path in /etc/rc.conf >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: Sat Oct 06 17:50:24 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Daniel Ylitalo >Release: 9.0-p4 >Organization: 203 Web Group AB >Environment: FreeBSD xxxx.myserver.com 9.0-RELEASE-p4 FreeBSD 9.0-RELEASE-p4 #0: Fri Oct 5 22:26:18 CEST 2012 daniel@xxxx.myserver.com:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Right now you have to have the my.cnf file in your dbdir, which isnt optimal in all cases (for example when using a deploysystem that handles all the configfiles) >How-To-Repeat: >Fix: Attached as patch Patch attached with submission follows: *** /usr/local/etc/rc.d/mysql-server Fri Sep 21 04:02:03 2012 --- /usr/local/etc/rc.d/mysql-server Sat Oct 6 13:43:40 2012 *************** *** 30,45 **** load_rc_config $name : ${mysql_enable="NO"} : ${mysql_limits="NO"} : ${mysql_dbdir="/var/db/mysql"} mysql_user="mysql" mysql_limits_args="-e -U ${mysql_user}" pidfile=${mysql_pidfile:-"${mysql_dbdir}/`/bin/hostname`.pid"} command="/usr/sbin/daemon" ! command_args="-c -f /usr/local/bin/mysqld_safe --defaults-extra-file=${mysql_dbdir}/my.cnf --user=${mysql_user} --datadir=${mysql_dbdir} --pid-file=${pidfile} ${mysql_args}" procname="/usr/local/libexec/mysqld" start_precmd="${name}_prestart" start_postcmd="${name}_poststart" mysql_install_db="/usr/local/bin/mysql_install_db" mysql_install_db_args="--basedir=/usr/local --datadir=${mysql_dbdir} --force" --- 30,46 ---- load_rc_config $name : ${mysql_enable="NO"} : ${mysql_limits="NO"} : ${mysql_dbdir="/var/db/mysql"} + : ${mysql_configfile="${mysql_dbdir}/my.cnf"} mysql_user="mysql" mysql_limits_args="-e -U ${mysql_user}" pidfile=${mysql_pidfile:-"${mysql_dbdir}/`/bin/hostname`.pid"} command="/usr/sbin/daemon" ! command_args="-c -f /usr/local/bin/mysqld_safe --defaults-extra-file=${mysql_configfile} --user=${mysql_user} --datadir=${mysql_dbdir} --pid-file=${pidfile} ${mysql_args}" procname="/usr/local/libexec/mysqld" start_precmd="${name}_prestart" start_postcmd="${name}_poststart" mysql_install_db="/usr/local/bin/mysql_install_db" mysql_install_db_args="--basedir=/usr/local --datadir=${mysql_dbdir} --force" >Release-Note: >Audit-Trail: >Unformatted: