-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fix #1
base: main
Are you sure you want to change the base?
Fix #1
Conversation
The datavolume needs to match the mkdir in the ExecStartPre. All 3 MARIADB_{USER,PASSWORD,DATABASE} are required to create a user and database. Correct PODMAN_SYSTEMD_UNIT=%n Because this is a type=notify service, podman passes to conmon to to systemd the MAINPID. With this systemd knows about the process conmon and its MAINPID, status there is no need for cidfile based logic. Remove TimeoutStopSec=70, since https://jira.mariadb.org/browse/MDEV-14705 there should be enough interaction over the type=notify service to keep systemd adviced of progress during slow shutdowns so there isn't a timeout. Remove --sdnotify=conmon to revert back to the default "container". MariaDB sends a READY so there's no need for conmon to fake it. NotifyAccess=all seem to imply that any process in the process group can send the READY=1. Couldn't see reason for cgroups=no-conmon. --cgroups=split might be a better option if you go with SendSIGKILL=no. This behaviour under system ensure's there is only one process the cgroup. Otherwise the default cgroups setting is ok.
Hi @grooverdan, thanks for reaching out and finding the bugs! I wonder if you could split out these bug fixes
and the same bug fix in [email protected]:
into a separate PR. I could then merge that PR directly. (If you want to, I could also write the PR). I think the line
is probably correct. At least, it comes
It would be good to stay as close to the Podman default configuration as possible. Here is an example that shows how Podman 4.0.0-rc5 generates a systemd unit file:
I understand that the changes you suggest might still be needed. It would be good to try to document the reasons for each change that drift away from the default. Right now I don't have a good understanding of how systemd and podman stops and restart containers. I realize that I need to study this a bit. In the best of worlds it would be possible to use Quadlet. The advantage is that the config files would be smaller and look cleaner. To use Quadlet I guess one need to stay close to the defaults, though. When I read |
Starting/stopping services - above linked issue.
Quadlet looks really cool. Thanks, I hadn't come across this. I probably don't have time to neatly reorganise this into multiple PRs or investigate the autoupdate more. |
The GitHub PR #1 contains a many different changes. Relevant commits: grooverdan@746bd11 grooverdan@73a00b0 Let's seperate out the changes that are obvious bugs. Signed-off-by: Erik Sjölund <[email protected]>
The GitHub PR #1 contains a many different changes. Relevant commits: grooverdan@746bd11 grooverdan@73a00b0 Let's seperate out the changes that are obvious bugs. Signed-off-by: Erik Sjölund <[email protected]>
The GitHub PR #1 contains a many different changes. Relevant commits: grooverdan@746bd11 grooverdan@73a00b0 Let's seperate out the changes that are obvious bugs. Signed-off-by: Erik Sjölund <[email protected]>
The GitHub PR #1 contains a many different changes. Relevant commits: grooverdan@746bd11 grooverdan@73a00b0 Let's separate out the changes that are obvious bugs. Signed-off-by: Erik Sjölund <[email protected]>
* Daniel Black (@grooverdan) provided bug fixes for the Unix service in #1 Fix similar bugs for the TCP service. * Fix incorrect directory name for the drop-in [email protected]/override.conf * Let the container names for the two different templated services have their own value space (--name mariadb-unix-%i and --name mariadb-tcp-%i) Signed-off-by: Erik Sjölund <[email protected]>
* Daniel Black (@grooverdan) provided bug fixes for the Unix socket service in #1 Fix similar bugs for the TCP service. * Fix incorrect directory name for the drop-in [email protected]/override.conf * Let the container names for the two different templated services have their own value space (--name mariadb-unix-%i and --name mariadb-tcp-%i) Signed-off-by: Erik Sjölund <[email protected]>
…container-selinux v2.178.0 * container-selinux v2.178.0 (released 11 Feb 2022) adds support for using --security-opt label=enable for Unix sockets Fixes #1 Signed-off-by: Erik Sjölund <[email protected]>
few small fixes. Some details in the commit message, email response coming too.