diff options
author | Marcelo GutiƩrrez(UTN/FRH) <kuyurix@gmail.com> | 2014-03-04 14:50:02 +0000 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-07-21 23:52:52 +0200 |
commit | 47af166209deff81c3c6d2c1d5e3814f971a27f9 (patch) | |
tree | 4bdedf83c98bc4b294d1267c40ca12cca4942602 /package/mysql/mysql.mk | |
parent | 83cb67dde2daa1b51e84bb2473f5bda77282842b (diff) | |
download | buildroot-47af166209deff81c3c6d2c1d5e3814f971a27f9.tar.gz buildroot-47af166209deff81c3c6d2c1d5e3814f971a27f9.zip |
mysql: add mysql init script
[Thomas: explicitly specify the path to the PID file, and also on the
first boot, generate the mandatory MySQL system tables so that the
MySQL daemon actually starts properly.]
Signed-off-by: Marcelo GutiƩrrez <kuyurix@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
merge init script
Diffstat (limited to 'package/mysql/mysql.mk')
-rw-r--r-- | package/mysql/mysql.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/package/mysql/mysql.mk b/package/mysql/mysql.mk index 44dcb7e14f..fec8b03f83 100644 --- a/package/mysql/mysql.mk +++ b/package/mysql/mysql.mk @@ -99,6 +99,11 @@ endef MYSQL_POST_INSTALL_TARGET_HOOKS += MYSQL_ADD_FOLDER +define MYSQL_INSTALL_INIT_SYSV + $(INSTALL) -D -m 0755 package/mysql/S97mysqld \ + $(TARGET_DIR)/etc/init.d/S97mysqld +endef + else MYSQL_CONF_OPT += \ --without-server |