Update to 4.1.11 release:

- add the possibility to specify additional command-line arguments
  to be passed to mysqld_safe on startup
This commit is contained in:
Alex Dupre 2005-04-06 10:58:50 +00:00
parent e061fa5198
commit 85f61982c2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=132632
3 changed files with 7 additions and 4 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME?= mysql
PORTVERSION= 4.1.10a
PORTVERSION= 4.1.11
PORTREVISION?= 0
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_MYSQL}

View File

@ -1,2 +1,2 @@
MD5 (mysql-4.1.10a.tar.gz) = 6a4a6a5b3d0a42a9a271b2b8867bde82
SIZE (mysql-4.1.10a.tar.gz) = 22565866
MD5 (mysql-4.1.11.tar.gz) = 0b99001b07cad53f161ec629a6bb24ea
SIZE (mysql-4.1.11.tar.gz) = 22880239

View File

@ -17,6 +17,8 @@
# just before mysql starts.
# mysql_dbdir (str): Default to "/var/db/mysql"
# Base database directory.
# mysql_args (str): Custom additional arguments to be passed
# to mysqld_safe (default empty).
#
. %%RC_SUBR%%
@ -29,12 +31,13 @@ load_rc_config $name
: ${mysql_enable="NO"}
: ${mysql_limits="NO"}
: ${mysql_dbdir="/var/db/mysql"}
: ${mysql_args=""}
mysql_user="mysql"
mysql_limits_args="-e -U ${mysql_user}"
pidfile="${mysql_dbdir}/`/bin/hostname`.pid"
command="%%PREFIX%%/bin/mysqld_safe"
command_args="--user=${mysql_user} --datadir=${mysql_dbdir} --pid-file=${pidfile} > /dev/null &"
command_args="--user=${mysql_user} --datadir=${mysql_dbdir} --pid-file=${pidfile} ${mysql_args} > /dev/null &"
procname="%%PREFIX%%/libexec/mysqld"
start_precmd="${name}_prestart"
mysql_install_db="%%PREFIX%%/bin/mysql_install_db"