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

Improve compatibility with kubernetes #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

boindil
Copy link

@boindil boindil commented Mar 13, 2023

  • consistent usage of echo instead of printf -> resolve problems in at least some kubernetes versions
  • always run an initial freshclam in the foreground before even attempting to start clamd -> it will not
  • surround freshclam, clamd and milter with additional checks for running process -> In my kubernetes-testings the processes did not start consistent, were sometimes trying to start overlapping and the experience was not good.

TODO: this can be improved by adding additional checks whether everything is still running and restarting processes if neccessary

- consistent usage of echo instead of printf -> resolve problems in at least some kubernetes versions
- always run an initial freshclam in the foreground before even attempting to start clamd -> it will not
- surround freshclam, clamd and milter with additional checks for running process -> In my kubernetes-testings the processes did not start consistent, were sometimes trying to start overlapping and the experience was not good.

TODO: this can be improved by adding additional checks whether everything is still running and restarting processes if neccessary
@micahsnyder
Copy link
Collaborator

Sorry this PR slipped by me. I will try to review it soon.

One comment, we'll need to make these changes to the clamav 1.1 scripts as well. And probably best to also add them to the 1.0 scripts, too. Probably not worth it for 0.105.

@jplitza
Copy link
Contributor

jplitza commented Dec 11, 2024

always run an initial freshclam in the foreground before even attempting to start clamd -> it will not

Why shouldn't it start if /var/lib/clamav is a persistent volume? I oppose this change.

Also, unsetting -e to then use $? instead of if ... directly is a code smell to me.

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.

3 participants