Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Wait for
mysql.service
on Ubuntu.Dear Team,
On Ubuntu there is no
mysqld.service
. Onlymysql.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 themysql.service
?Regards,