Operation
Avira GmbH
Avira AntiVir UNIX Server
55
Running AntiVir When Installed in Other Directory Than /usr/lib/AntiVir
AntiVir requires information on its installation directory for the self-test if not installed
in
/usr/lib/AntiVir
.
If AntiVir is installed, for example in
/usr/local/AntiVir
:
Type:
antivir --home-dir=/usr/local/AntiVir
Updating AntiVir Manually
You can update AntiVir manually at any time.
It is recommended to run AntiVir as root during updates.
Advantage: other running processes of AntiVir daemons (such as AntiVir Guard, SAVAPI
server processes, AntiVir MailGate) will be automatically updated with the new security
files without interrupting the scanning process. Thus it ensures that all files are scanned.
If AntiVir is not started as root during updating, it will not have the necessary
permissions for restarting AntiVir daemons. Consequently, you need to restart manually
as root.
If you want to update AntiVir:
Type:
/usr/lib/AntiVir/antivir --update
If you only want to check for a new AntiVir update without performing it:
Type:
/usr/lib/AntiVir/antivir --update --check
Updating AntiVir Using a Script
Advanced UNIX users can integrate the AntiVir Command line scanner in a script and use
the
Exit Codes
– Page 52.
Example
Write a script like the one below, to suppress AntiVir messages and to replace them
with your own:
------------------ BEGIN SCRIPT -------------------
#!/bin/sh
/usr/lib/AntiVir/antivir --update -q
case $? in
0)
echo "AntiVir is up-to-date"
;;
1)
echo "AntiVir has been updated"
;;
*)
echo "An error occured during update"
;;
esac
------------------- END SCRIPT --------------------