ports/98604: Ability to override the mysql pid path from rc.conf without editing the rc file.

srwadleigh srw at udor.net
Wed Jun 7 01:23:05 UTC 2006


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



More information about the freebsd-ports-bugs mailing list