From 9208266ec165c1ded5ee0fd6ea94cd967dadf520 Mon Sep 17 00:00:00 2001 From: xtraeme Date: Wed, 13 Jun 2007 13:24:07 +0000 Subject: mysqld_precmd(): check if ${mysql_datadir}/mysql dir exists before starting mysqld, otherwise if mysql_datadir has not been initialized it will fail. Patch from Edgar Fur via PR pkg/36138. --- databases/mysql5-server/files/mysqld.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'databases') diff --git a/databases/mysql5-server/files/mysqld.sh b/databases/mysql5-server/files/mysqld.sh index d7036a207e0..f222a72874a 100644 --- a/databases/mysql5-server/files/mysqld.sh +++ b/databases/mysql5-server/files/mysqld.sh @@ -1,6 +1,6 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: mysqld.sh,v 1.1.1.1 2005/10/31 09:22:26 xtraeme Exp $ +# $NetBSD: mysqld.sh,v 1.2 2007/06/13 13:24:07 xtraeme Exp $ # # PROVIDE: mysqld # REQUIRE: DAEMON LOGIN mountall @@ -36,7 +36,7 @@ start_cmd="mysqld_start" mysqld_precmd() { - if [ ! -d ${mysqld_datadir} ]; then + if [ ! -d ${mysqld_datadir}/mysql ]; then mysqld_initdb fi } -- cgit v1.2.3