handle mysql process crashes gracefully

Review Request #129264 - Created Oct. 26, 2016 and submitted

Information
Martin Koller
akonadi
master
Reviewers
akonadi
dvratil

It happened to me that I started kmail but could not see any mail folder.
Searching I found that although all akonadi processes were running, the mysqld process was not,
so it seems for whatever reason mysqld crashed (using a privately started mysqld from akonadiserver).

This patch checks if the mysqld stops unexpectedly when it was started from akonadiserver and tells the latter to quit when a stopped mysqld was discovered.
Also in this case the local socket file is removed so that a restart can work without problem.

Started akonadi via akonadictl and also implicitely via kmail, then killed (-4, -15) mysqld.
Restarted via akonadictl or kmail

Issues

  • 1
  • 3
  • 0
  • 4
Description From Last Updated
Either this has to stay here, or stopInternalServer() must be adjusted to not just give up when mDatabaseProcess is null, ... Daniel Vrátil Daniel Vrátil
Daniel Vrátil
Martin Koller
Daniel Vrátil
Martin Koller
Daniel Vrátil
Martin Koller
Daniel Vrátil
Martin Koller
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 4c5ca9bf32e5a9d569e83f66a439c65d8939a540 by Martin Koller to branch master.
Loading...