From owner-freebsd-ports@FreeBSD.ORG Wed Dec 20 04:42:50 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A8CD516A416 for ; Wed, 20 Dec 2006 04:42:50 +0000 (UTC) (envelope-from steinex@nognu.de) Received: from shodan.nognu.de (shodan.nognu.de [85.14.216.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C2E643CA4 for ; Wed, 20 Dec 2006 04:42:49 +0000 (GMT) (envelope-from steinex@nognu.de) Received: by shodan.nognu.de (Postfix, from userid 1002) id 83A3BB822; Wed, 20 Dec 2006 05:42:48 +0100 (CET) Date: Wed, 20 Dec 2006 05:42:48 +0100 From: Frank Steinborn To: Scot Hetzel Mail-Followup-To: Scot Hetzel , freebsd-ports@freebsd.org, sysadmin@alexdupre.com References: <20061220030746.A707FB822@shodan.nognu.de> <790a9fff0612191958g7730a1e4pca18cee27436acc8@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <790a9fff0612191958g7730a1e4pca18cee27436acc8@mail.gmail.com> User-Agent: mutt-ng/devel-r804 (FreeBSD) Message-Id: <20061220044248.83A3BB822@shodan.nognu.de> Cc: sysadmin@alexdupre.com, freebsd-ports@freebsd.org Subject: Re: mysql41-server's rc.d script broken? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Dec 2006 04:42:50 -0000 Scot Hetzel wrote: > On 12/19/06, Frank Steinborn wrote: > >If I run mysqld_safe directly mysqld starts as expected. I had a look > >into the script but could not find the source of the problem. I'm not > >sure if that's a misconfiguration just on my site - anyone else seeing > >this? > > > >OK - I just edited the script so that it won't send mysqld_safe's > >output to /dev/null and got the following: > > > >Starting mysql. > >Starting mysqld daemon with databases from /var/db/mysql > >STOPPING server from pid file /var/db/mysql/shodan.nognu.de.pid > >061220 04:05:50 mysqld ended > > > >/var/db/mysql/shodan.nognu.de.err says this: > > > >061220 04:04:03 mysqld started > >061220 4:04:03 [ERROR] Can't find messagefile > >'/usr/local/share/mysql/english/errmsg.sys' > >061220 4:04:03 [ERROR] Aborting > > > >Strange. /usr/local/share/mysql/english/errmsg.sys is there and mysqld > >just starts fine if I start it manually. Any clues are welcome. > > > When you run the script, mysqld_safe is run as the mysql user. > > What happens when you run mysqld_safe as the mysql user? > > Does the mysql user have read access to this file (including sub > directories leading to the file)? > > Scot Scot, it was a permission issue indeed. I had a too strong umask when portupgrading mysql-server. Sorry for the wind. Thanks, Frank