Go to file
Hongxu Jia c0a1be1ceb mariadb.inc: fix mysqld hung at first init time based on systemd
While SYSTEMD_AUTO_ENABLE_mariadb-server = "enable", the mysqld service
hungs.
...
[    **] A start job is running for Run pending postinsts (25s / no limit)
[  OK  ] Stopped MariaDB database server.
...

In mariadb-server's pkg_postinst, it install db at first runtime. And the
following 'systemctl mysqld restart' casued the hunging. So the fix idea
is to reomove pkg_postinst and still install db at first runtime.

Introduce mysql-systemd-start from ${S}/packaging/rpm-oel/. For review
convenience, we add them as file.

The mysql-systemd-start provides two functions: the install_db is to install
db at fist runtime (the first runtime means if a db existed, the install_db
will directly exit); the pinger is to wait for mysqld service startup
completed.

The mysqld.service add ExecStartPost than previous which invoke
'mysql-systemd-start post' to wait for mysqld service startup completed.

We add a package to provide install_db, so the user could choose it
to install database for mariadb at first boot before mysqld started.

It also fix another issue:
When you manually restart mysqld and do mysql test to connect the server,
the return of the restart could make sure mysqld is ready, and the following db
connect will not fail with:
...
Can't connect to local MySQL server through socket
...

Tweak my.cnf to remove obsolete/incorrect parameter.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-12-18 12:39:49 +01:00
contrib contrib/tesseract-langs.sh: add script to generate recipes for tesseract languages 2014-06-10 12:16:23 +02:00
meta-efl efl: add dependency on libunwind 2015-11-16 21:50:10 +01:00
meta-filesystems sshfs-fuse: correct definition of S 2015-10-13 12:27:46 +02:00
meta-gnome gvfs: don't depend on samba by default 2015-11-16 21:50:11 +01:00
meta-gpe meta-gpe: Add LAYERVERSION and LAYERDEPENDS 2014-11-28 13:41:52 +01:00
meta-initramfs dracut: fix host-user-contaminated 2015-12-18 12:30:22 +01:00
meta-multimedia mpg123: update 1.21.0 -> 1.22.4 2015-12-18 12:36:55 +01:00
meta-networking wireshark: update to version 2.0.0 2015-11-30 14:39:59 -05:00
meta-oe mariadb.inc: fix mysqld hung at first init time based on systemd 2015-12-18 12:39:49 +01:00
meta-perl libproc-waitstat-perl: add recipe 2015-12-18 12:37:21 +01:00
meta-python python-monotonic: new recipe, version 0.4 2015-12-18 12:36:55 +01:00
meta-ruby imsettings: add xfconf dependency and xfce-layer to LAYERDEPENDS 2015-11-16 21:50:11 +01:00
meta-systemd dhcp: fix parsing warning 2015-08-24 14:06:58 +02:00
meta-webserver phpmyadmin: exclude bash dependency with SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS 2015-11-16 21:50:08 +01:00
meta-xfce xfce4-session: exclude machine-host dependency with SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS 2015-11-16 21:50:09 +01:00
.gitignore gitignore: Ignore Edit backup files, patches, .rej, .orig, .swp 2013-11-24 15:19:27 +01:00
COPYING.MIT add README and license for this layer 2011-02-13 16:47:32 +01:00
README README: add top level readme, update meta-oe one 2011-10-17 09:27:01 +02:00

Collection of layers for the OE-core universe

Please see the respective READMEs in the layer subdirectories