freeradius3 couldnt connect to mysql-server
Lukas Nuth
l.nuth at ostfalia.de
Mon Oct 22 09:32:08 CEST 2018
> Sounds like in your current setup the system tries to start FreeRADIUS before the MySQL daemon has finished starting up, so when FR attempts to connect to the database, the database isn't ready for connections yet and the startup fails.
Yes, FR has started before the MySQL deamon.
>
> When you launch it manually later on, MySQL has started and things connect fine.
>
> I'm honestly not sure how to handle this elegantly - the "obvious" answer of making the service file wait until the database is running is distinctly non-trivial because the service file has no way of knowing /which/ type of database server it needs to wait on, or whether the database server it needs to connect to is even on the same system (mine aren't, for example).
Now I've configured the MySQL daemon so that it start before FR.
>
> --Rens.
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
More information about the Freeradius-Users
mailing list