mysqld_safe holding open a pty/tty on FreeBSD (7.x and 8.x)

Paul Mather paul at gromit.dlib.vt.edu
Fri Oct 1 00:35:01 UTC 2010


On Sep 30, 2010, at 3:56 AM, Jeremy Chadwick wrote:

> The diff is pretty obvious/simple (2 line change), so the other
> databases/mysqlXX-server ports can be upgraded in the same manner.
> 
> --- files/mysql-server.sh.in.orig	2010-03-27 03:24:53.000000000 -0700
> +++ files/mysql-server.sh.in	2010-09-30 00:45:38.000000000 -0700
> @@ -35,8 +35,8 @@
> mysql_user="mysql"
> mysql_limits_args="-e -U ${mysql_user}"
> pidfile="${mysql_dbdir}/`/bin/hostname`.pid"
> -command="%%PREFIX%%/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 2>&1 &"
> +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}"

Shouldn't this be "-c -f %%PREFIX%%/bin/mysqld_safe ..." rather than hard-coding /usr/local?

> procname="%%PREFIX%%/libexec/mysqld"
> start_precmd="${name}_prestart"
> start_postcmd="${name}_poststart"
> 
> -- 
> | Jeremy Chadwick                                   jdc at parodius.com |
> | Parodius Networking                       http://www.parodius.com/ |
> | UNIX Systems Administrator                  Mountain View, CA, USA |
> | Making life hard for others since 1977.              PGP: 4BD6C0CB |

Cheers,

Paul.


More information about the freebsd-stable mailing list