diff options
author | ale <ale@FreeBSD.org> | 2013-04-24 23:08:22 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2013-04-24 23:08:22 +0800 |
commit | 879d217440ff9ace872ff256bd3c660af1e8d02f (patch) | |
tree | 0ea2bc5436e4b13521f411175ad72038b4ae1437 /databases | |
parent | ef6731edc56fbc410899d990368eefdf6c423b9e (diff) | |
download | freebsd-ports-gnome-879d217440ff9ace872ff256bd3c660af1e8d02f.tar.gz freebsd-ports-gnome-879d217440ff9ace872ff256bd3c660af1e8d02f.tar.zst freebsd-ports-gnome-879d217440ff9ace872ff256bd3c660af1e8d02f.zip |
Allow to specify server-specific option file path in /etc/rc.conf
PR: ports/172408
Submitted by: Daniel Ylitalo <daniel@produktion203.se>
Diffstat (limited to 'databases')
-rw-r--r-- | databases/mysql55-server/files/mysql-server.in | 5 | ||||
-rw-r--r-- | databases/mysql56-server/files/mysql-server.in | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/databases/mysql55-server/files/mysql-server.in b/databases/mysql55-server/files/mysql-server.in index fa701dcca45b..5eeb978225b4 100644 --- a/databases/mysql55-server/files/mysql-server.in +++ b/databases/mysql55-server/files/mysql-server.in @@ -16,6 +16,8 @@ # just before mysql starts. # mysql_dbdir (str): Default to "/var/db/mysql" # Base database directory. +# mysql_optfile (str): Server-specific option file. +# Default to "${mysql_dbdir}/my.cnf". # mysql_pidfile (str): Custum PID file path and name. # Default to "${mysql_dbdir}/${hostname}.pid". # mysql_args (str): Custom additional arguments to be passed @@ -32,12 +34,13 @@ load_rc_config $name : ${mysql_enable="NO"} : ${mysql_limits="NO"} : ${mysql_dbdir="/var/db/mysql"} +: ${mysql_optfile="${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 %%PREFIX%%/bin/mysqld_safe --defaults-extra-file=${mysql_dbdir}/my.cnf --user=${mysql_user} --datadir=${mysql_dbdir} --pid-file=${pidfile} ${mysql_args}" +command_args="-c -f %%PREFIX%%/bin/mysqld_safe --defaults-extra-file=${mysql_optfile} --user=${mysql_user} --datadir=${mysql_dbdir} --pid-file=${pidfile} ${mysql_args}" procname="%%PREFIX%%/libexec/mysqld" start_precmd="${name}_prestart" start_postcmd="${name}_poststart" diff --git a/databases/mysql56-server/files/mysql-server.in b/databases/mysql56-server/files/mysql-server.in index fa701dcca45b..5eeb978225b4 100644 --- a/databases/mysql56-server/files/mysql-server.in +++ b/databases/mysql56-server/files/mysql-server.in @@ -16,6 +16,8 @@ # just before mysql starts. # mysql_dbdir (str): Default to "/var/db/mysql" # Base database directory. +# mysql_optfile (str): Server-specific option file. +# Default to "${mysql_dbdir}/my.cnf". # mysql_pidfile (str): Custum PID file path and name. # Default to "${mysql_dbdir}/${hostname}.pid". # mysql_args (str): Custom additional arguments to be passed @@ -32,12 +34,13 @@ load_rc_config $name : ${mysql_enable="NO"} : ${mysql_limits="NO"} : ${mysql_dbdir="/var/db/mysql"} +: ${mysql_optfile="${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 %%PREFIX%%/bin/mysqld_safe --defaults-extra-file=${mysql_dbdir}/my.cnf --user=${mysql_user} --datadir=${mysql_dbdir} --pid-file=${pidfile} ${mysql_args}" +command_args="-c -f %%PREFIX%%/bin/mysqld_safe --defaults-extra-file=${mysql_optfile} --user=${mysql_user} --datadir=${mysql_dbdir} --pid-file=${pidfile} ${mysql_args}" procname="%%PREFIX%%/libexec/mysqld" start_precmd="${name}_prestart" start_postcmd="${name}_poststart" |