From owner-freebsd-stable@FreeBSD.ORG Tue Jun 7 09:04:37 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA5EC16A41C for ; Tue, 7 Jun 2005 09:04:37 +0000 (GMT) (envelope-from uzi@bmby.com) Received: from smtp2.actcom.co.il (smtp2.actcom.co.il [192.114.47.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F33443D1F for ; Tue, 7 Jun 2005 09:04:36 +0000 (GMT) (envelope-from uzi@bmby.com) Received: from [10.0.0.3] (l192-114-46-204.broadband.actcom.net.il [192.114.46.204]) by smtp2.actcom.co.il (8.13.3/8.13.3) with ESMTP id j5794UTL032151; Tue, 7 Jun 2005 12:04:34 +0300 Message-ID: <42A5631D.3040705@bmby.com> Date: Tue, 07 Jun 2005 12:04:29 +0300 From: Uzi Klein User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Roger Grosswiler References: <35460.62.2.21.164.1118130481.squirrel@www.gwch.net> In-Reply-To: <35460.62.2.21.164.1118130481.squirrel@www.gwch.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: mysqld_safe does not end after start of mysqld X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jun 2005 09:04:37 -0000 Roger Grosswiler wrote: > hi, > > If i launch mysqld_safe, i expect it goes in background, but it doesn't. > even statring /usr/local/bin/mysqld_safe& just puts out the pid. > > root@freebsd# /usr/local/bin/mysqld_safe& > [1] 5433 > root@freebsd# Starting mysqld daemon with databases from /var/db/mysql better use the rc script /usr/local/etc/rc.d/mysql-server.sh (start|stop|...) after adding the mysql vars into /etc/rc.conf: mysql_enable="YES" mysql_limits="YES" # (optional) ( see all in the rc script) I have found that the pidfile variable in mysql-server.sh doesnt act as expected when you use the stop command. commenting that line solved the problem for me; #pidfile="${mysql_dbdir}/`/bin/hostname`.pid" > > ...and that's all. usually, i expect it goes in background and i could > close that shell. did i miss something? it's just a fresh install from > ports, initing with mysql_install_db and mysql_create_system_tables. > > Thanks for any help > Roger > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -- Uzi Klein Software Development Executive B.M.B.Y Software Systems LTD. http://www.bmby.com