Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 3/4] mysql: add mysql init script
Date: Tue, 22 Jul 2014 00:11:19 +0200	[thread overview]
Message-ID: <20140722001119.14837d38@free-electrons.com> (raw)
In-Reply-To: <1393944603-3104-3-git-send-email-kuyurix@gmail.com>

Dear Marcelo Guti?rrez,

On Tue,  4 Mar 2014 14:50:02 +0000, Marcelo Guti?rrez wrote:

> +case "$1" in
> +	start)
> +		/usr/bin/mysqld_safe &

I've added a call to mysql_install_db on the first boot, to generate
the MySQL system tables, otherwise the server refuses to start. I've
also used --pid-file when calling mysqld_safe to explicitly specify
where the pid file should be stored, because...

> +		;;
> +	stop)
> +		if test -f /var/lib/mysql/mysqld.pid ; then
> +			PID=`cat /var/lib/mysql/mysqld.pid`

... it wasn't stored there, so I fixed that up as well.

Committed with those changes, thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  reply	other threads:[~2014-07-21 22:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-04 14:50 [Buildroot] [PATCH 1/4] mysql: fix missing directory Marcelo Gutiérrez
2014-03-04 14:50 ` [Buildroot] [PATCH 2/4] mysql: add mysql user Marcelo Gutiérrez
2014-07-21 22:10   ` Thomas Petazzoni
2014-03-04 14:50 ` [Buildroot] [PATCH 3/4] mysql: add mysql init script Marcelo Gutiérrez
2014-07-21 22:11   ` Thomas Petazzoni [this message]
2014-03-04 14:50 ` [Buildroot] [PATCH 4/4] mysql: host-mysql depends on host-zlib Marcelo Gutiérrez
2014-03-04 17:52   ` Thomas Petazzoni
2014-03-04 18:30     ` Marcelo Gutierrez
2014-03-04 20:03       ` Marcelo Gutierrez
2014-07-21 22:11   ` Thomas Petazzoni
2014-07-21 22:09 ` [Buildroot] [PATCH 1/4] mysql: fix missing directory Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140722001119.14837d38@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox