Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | correct the absolute path of `rm` executable | Yuan-Hao Chen | 2020-06-19 |
| | | | | Signed-off-by: Yuan-Hao Chen <yhchen0906@gmail.com> | ||
* | generate systemd: `ExecStopPost` for all units | Valentin Rothberg | 2020-06-17 |
| | | | | | | | | | | | | | | | | Add an `ExecStopPost` run even for units generated without `--new`. Although it may seem redundant to run `container/pod stop` twice at first glance, we really need the post run. If the main PID (i.e., conmon) is killed, systemd will not execute `ExecStop` but only the post one. We made this obeservation in a customer issue and could reproduce the behavior consistently. Hence, the post run is needed to properly clean up when conmon is killed and it's pretty much a NOP in all other cases. Credits to Ulrich Obergfell for throrough and detailed analyses, which ultimately lead to this fix. Signed-off-by: Valentin Rothberg <rothberg@redhat.com> | ||
* | generate systemd: `--replace` on named containers/pods | Valentin Rothberg | 2020-06-15 |
| | | | | | | | | | Use `--replace` for named containers and pods. This will clean up previous containers and podsthat may not have been removed after a system crash. Fixes: #5485 Signed-off-by: Valentin Rothberg <rothberg@redhat.com> | ||
* | generate systemd: create pod template | Valentin Rothberg | 2020-06-11 |
Create a new template for generating a pod unit file. Eventually, this allows for treating and extending pod and container generation seprately. The `--new` flag now also works on pods. Signed-off-by: Valentin Rothberg <rothberg@redhat.com> |