-
Notifications
You must be signed in to change notification settings - Fork 45
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
issues restarting or stopping systemd service pods #4
Comments
Hmmm, my podman version 1.4.2-stable2 does not have such -i option. Need to take another look later. |
i am using podman 1.7.0 atm. any preferences on your side? |
Sorry it took time to come back to this, thanks for your patience. There has been a lot of traveling in between. I don't see the problem there. I especially used the minus on those fields (=-) to let systemd ignore if the command throws an error. Sure, journalctl will have failed exec code for the line, but it ignores the error. Adding the -i option would lead to same state, right? Only difference that podman would ignore the error. Or am I missing something? I would be OK to have the -i switch there preferrably once RHEL/CentOS operating systems will have such version of podman that has it. It can't be too long. But is there any benefit seeing the trouble for the time being? See the "Table 1. Special executable prefixes" on this page, and look for the - operand: https://www.freedesktop.org/software/systemd/man/systemd.service.html
Perhaps I didn't understand the problem? |
This is the line that you should be looking into, and it's just fine:
|
I ran into similar problems and I have made some fixes, I'm not sure that these would be worth having upstream or not. I was trying to run rootless and the systemd unit file was not working as expected and wasn't able to start or stop the pods successfully as the PIDs were not owned by system. I will submit a pull request for the changes I made to help fix this, but I'm not sure if my changes may be breaking or not. |
due to my tests i encountered several issues using the generated systemd service.
e.g. trying to restart brought the service into the following status:
The text was updated successfully, but these errors were encountered: