Bug #61948 mysql / systemd socket activation
Submitted: 21 Jul 2011 23:43 Modified: 1 Dec 2016 13:56
Reporter: Harald Reindl Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Packaging Severity:S3 (Non-critical)
Version: OS:Linux
Assigned to: CPU Architecture:Any

[21 Jul 2011 23:43] Harald Reindl
Description:
would it be possible to include the patch from fedora in a way that mysql can be compiled with it using a additional switch to get ready for systemd (now fedora, other distributions will include it over the time too) and get the current discussions on fedora-bugtrackers and mailing-lists cleard?

https://bugzilla.redhat.com/show_bug.cgi?id=714426
https://bugzilla.redhat.com/attachment.cgi?id=514023

How to repeat:
* use a distribution with systemd
* start mysqld with a native systemd.service
* look at warnings of services rely on mysqld ready for connections

Suggested fix:
give distributions a option to compile mysqld with native support so systemd can answer connections from clients while mysqld is initalizing
[22 Jul 2011 11:49] Valeriy Kravchuk
Thank you for the feature request.
[1 Dec 2016 13:56] Terje Røsten
Posted by developer:
 
Fixed:

commit 039f8fa1dd23c9a8546bcdab6734bfb4ffeb1b4b
Author: Thayumanavar <thayumanavar.x.sachithanantha@oracle.com>
Date:   Sat Feb 7 21:30:06 2015 +0530

    WL#7895 - Add systemd support to server.
    
     The patch adds the following changes:
    1. Introduce cmake option WITH_SYSTEMD.
    2. Introduce server command-line option --daemonize to run server
       in daemon mode.
    3. Introduce exit code macros MYSQLD_SUCCESS_EXIT, MYSQLD_ABORT_EXIT
        and MYSQLD_FAILURE_EXIT and it's related changes.
    4. Auto generate mysqld.service based on install configuration
    5. Install related cmake changes.