Go to file
Hongxu Jia 9560894109 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>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2015-12-20 14:26:37 -08: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:57:47 +01:00
meta-filesystems README: update maintainers list for jethro 2015-11-11 12:11:28 +01:00
meta-gnome gvfs: don't depend on samba by default 2015-11-16 21:57:48 +01:00
meta-gpe README: update maintainers list for jethro 2015-11-11 12:11:28 +01:00
meta-initramfs dracut: fix host-user-contaminated 2015-12-20 14:16:19 -08:00
meta-multimedia VLC: do not use --with-contrib 2015-12-20 14:15:46 -08:00
meta-networking ufw: improve RRECOMMENDS 2015-12-20 14:10:00 -08:00
meta-oe mariadb.inc: fix mysqld hung at first init time based on systemd 2015-12-20 14:26:37 -08:00
meta-perl libnet-ssleay-perl: fix test failures with openssl 2015-12-20 14:13:41 -08:00
meta-python python-jinja2: Disable make clean 2015-12-20 14:16:42 -08:00
meta-ruby imsettings: add xfconf dependency and xfce-layer to LAYERDEPENDS 2015-11-16 21:57:48 +01:00
meta-systemd README: update maintainers list for jethro 2015-11-11 12:11:28 +01:00
meta-webserver phpmyadmin: exclude bash dependency with SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS 2015-11-16 21:57:45 +01:00
meta-xfce xfce4-session: exclude machine-host dependency with SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS 2015-11-16 21:57:46 +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