Skip to content

Commit

Permalink
Merge pull request #393 from kubescape/feature/mute-clam
Browse files Browse the repository at this point in the history
Muting clam
  • Loading branch information
amitschendel authored Oct 29, 2024
2 parents 5dcfd9c + b0ce04a commit 95fd11f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clamav/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ else
if [ -S "/tmp/clamd.sock" ]; then
unlink "/tmp/clamd.sock"
fi
clamd --foreground &
# Run clamd in the foreground but redirecting output to stdout and stderr to /dev/null
clamd --foreground > /dev/null 2>&1 &
while [ ! -S "/run/clamav/clamd.sock" ] && [ ! -S "/tmp/clamd.sock" ]; do
if [ "${_timeout:=0}" -gt "${CLAMD_STARTUP_TIMEOUT:=1800}" ]; then
echo
Expand Down

0 comments on commit 95fd11f

Please sign in to comment.