Debian Codegraph @

debian/tests/clamd

raw symbols SCIP
1 #!/bin/bash
2 #----------------------
3 # Testing clamav-daemon
4 #----------------------
5 set -e
6 DAEMON=clamd
7
8 # copy the file form unit tests to clamav directory
9 cp `dirname $0`/../../unit_tests/input/bytecode_sigs//bytecode.cvd /var/lib/clamav/main.cvd > /dev/null 2>&1
10 cp `dirname $0`/../../unit_tests/input/bytecode_sigs//bytecode.cvd /var/lib/clamav/daily.cvd > /dev/null 2>&1
11
12 # restart clamav
13 invoke-rc.d clamav-daemon start > /dev/null 2>&1
14
15 if pidof -x $DAEMON > /dev/null; then
16 echo "OK"
17 else
18 echo "ERROR: ${DAEMON} IS NOT RUNNING"
19 exit 1
20 fi