#!/bin/sh

# Bootstrap the database if clamav is running for the first time
[ -f /var/lib/clamav/main.cvd ] || freshclam
ulimit -n 102400

# Run the update daemon
freshclam -d -c 6

# Run clamav
clamd
