Date: Tue, 6 Jun 2006 20:36:15 -0400 (EDT) From: srwadleigh <srw@udor.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: srw@udor.net Subject: ports/98604: Ability to override the mysql pid path from rc.conf without editing the rc file. Message-ID: <20060607003615.CF1D3412B@mail.mad.udor.net> Resent-Message-ID: <200606070100.k5710Xug070884@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 98604 >Category: ports >Synopsis: Ability to override the mysql pid path from rc.conf without editing the rc file. >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: Wed Jun 07 01:00:32 GMT 2006 >Closed-Date: >Last-Modified: >Originator: srwadleigh >Release: FreeBSD 6.1-STABLE i386 >Organization: >Environment: System: FreeBSD 6.1-STABLE >Description: I like to customize the mysql pidfile path from rc.conf, or at least have the option to override the rc file default. Currently you have to edit the rc file which gets overwritten during a port upgrade. >How-To-Repeat: >Fix: --- mysql-server.orig Wed Jun 7 08:07:12 2006 +++ mysql-server.new Wed Jun 7 08:21:37 2006 @@ -31,12 +31,12 @@ : ${mysql_limits="NO"} : ${mysql_dbdir="/var/db/mysql"} : ${mysql_args=""} +: ${mysql_pidfile="${mysql_dbdir}/`/bin/hostname`.pid"} mysql_user="mysql" mysql_limits_args="-e -U ${mysql_user}" -pidfile="${mysql_dbdir}/`/bin/hostname`.pid" command="/usr/local/bin/mysqld_safe" -command_args="--defaults-extra-file=${mysql_dbdir}/my.cnf --user=${mysql_user} --datadir=${mysql_dbdir} --pid-file=${pidfile} ${mysql_args} > /dev/null &" +command_args="--defaults-extra-file=${mysql_dbdir}/my.cnf --user=${mysql_user} --datadir=${mysql_dbdir} --pid-file=${mysql_pidfile} ${mysql_args} > /dev/null &" procname="/usr/local/libexec/mysqld" start_precmd="${name}_prestart" mysql_install_db="/usr/local/bin/mysql_install_db" >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060607003615.CF1D3412B>