:: Re: [DNG] starting mysql in backgro…
Kezdőlap
Delete this message
Reply to this message
Szerző: Simon
Dátum:  
Címzett: Devuan ML
Tárgy: Re: [DNG] starting mysql in background ?
Radisson via Dng <dng@???> wrote:

> i would like to start my mysqld 8.0 in background because it takes
> several minutes to start.


Under what init/process manger setup ?

If under SysVInit, then I would suggest you could simply modify the relevant init scripts to not wait for the process to fully start - i.e. just return success as soon as it looks like it is starting normally. But you’ll also need to modify anything that depends on mysql such that it will wait for it to be available rather than just the init script having exited normally.

There is an argument that the correct way to start processes is to simply start them all at once (zero attempt at sequencing) - and have the beginning of each script (or other config mechanism) be a “wait until my prerequisites (however I define them) to be available” step.

Simon