[systemd-devel] My experience with MySQL and systemctl

Michael Biebl mbiebl at gmail.com
Wed Apr 12 19:09:52 UTC 2017


2017-04-12 20:24 GMT+02:00 Tomasz Torcz <tomek at pipebreaker.pl>:
> On Wed, Apr 12, 2017 at 11:01:04AM -0700, Auke Kok wrote:
>> The right (or, better) solution IMHO would be for mysqld to signal to
>> systemd that it's running OK before recovery starts, using type=notify.
>> This way recovery can take as long as needed, and if it fails, it could
>> signal this failure as normal back to systemd. Then systemd would retry
>> the recovery a few times this way and finally give up.
>
>   It wouldn't be good solution.  READY=1 means clients can connect and
> talk to the database. Signalling readiness prematurely would break functionality..

Maybe we'd need a new state paramenter, like STARTING=1 which could be
sent by the daemon to systemd in regular intervals and would signal
systemd that the startup of the daemon is in process and the daemon is
not actually hung.


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?


More information about the systemd-devel mailing list