Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wait for mysql.service #13029

Merged
merged 1 commit into from Jul 13, 2023
Merged

wait for mysql.service #13029

merged 1 commit into from Jul 13, 2023

Conversation

kovacs-andras
Copy link
Contributor

Wait for mysql.service on Ubuntu.

Dear Team,

On Ubuntu there is no mysqld.service. Only mysql.service exists.
With a mysql backend in use but without waiting for mysql.service to start, the pdns service can fail+restart a couple of times on boot with an error like:
systemd[1]: Failed to start PowerDNS Authoritative Server. -> until mysql will start and accept the connections of pdns.
It's not a big deal, pdns.service will start anyways.
I'm getting the error twice in a Ubuntu 20.04 VM when booting up.
I also checked 16.04, 18.04, 22.04 and none of them has mysqld.service when I install mysql from repo.

Personally I also prefer the *d.service names and other services like OpenSSH can handle both on Ubuntu with a regular service unit file here: /lib/systemd/system/ssh.service
plus with a symlink which points to the same service unit file:
/etc/systemd/system/sshd.service -> /lib/systemd/system/ssh.service
But unfortunately this is not the case for mysql.

What do you think? Does it worth to extend the pdns.service unit file and wait for the mysql.service?

Regards,

@Habbie Habbie merged commit 57cf6c8 into PowerDNS:master Jul 13, 2023
74 checks passed
@Habbie
Copy link
Member

Habbie commented Jul 13, 2023

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants