Before the kavicapd
service is ready to run, the following paths must be specified:
Path to a directory with PPL plugin files.
Path to a directory with shared libraries.
The paths to plugins and shared libraries can be specified by exporting the KL_PLUGINS_PATH
and LD_LIBRARY_PATH
environment variables, respectively.
The KL_PLUGINS_PATH
and LD_LIBRARY_PATH
variables can be exported manually, or automatically by using the kavicapd init script. You can also use the kavicapd.sh shell script, which exports KL_PLUGINS_PATH
and LD_LIBRARY_PATH
and starts the kavicapd
service.
Specifying the path to plugins and libraries manually
This method requires exporting the variables each time before you start the kavicapd
service in a new session (the variables only exist during the current shell session).
The following example shows how to export the variables manually:
[user@host ~]$ export KL_PLUGINS_PATH="/opt/kaspersky/ScanEngine/ppl" [user@host ~]$ export LD_LIBRARY_PATH="/opt/kaspersky/ScanEngine/lib:${KL_PLUGINS_PATH}:${LD_LIBRARY_PATH}" |
Specifying the path to plugins and libraries with the init script
You can modify the ICAP mode init script so that it exports the variables automatically.
To export the variables by means of the init script:
############# KAV SDK configuration ############ SDKPATH=/opt/kaspersky/ScanEngine
KL_PLUGINS_PATH="${SDKPATH}/ppl" LD_LIBRARY_PATH="${SDKPATH}/lib:${KL_PLUGINS_PATH}:${LD_LIBRARY_PATH}" |
SDKPATH
, KL_PLUGINS_PATH
, and LD_LIBRARY_PATH
to point to the location of the KAV SDK directory, plugin directory, and libraries directory, respectively.The init script will export the variables when it is executed.
Specifying the path to plugins and libraries with the kavicapd.sh shell script
You can modify kavicapd.sh so that it exports the variables automatically.
To export the variables by means of the kavicapd.sh shell script:
SDK_PATH=$PWD/../../../.. KL_PLUGINS_PATH=$SDK_PATH/ppl LD_LIBRARY_PATH=$SDK_PATH/lib:$KL_PLUGINS_PATH:$LD_LIBRARY_PATH |
SDKPATH
, KL_PLUGINS_PATH
, and LD_LIBRARY_PATH
to point to the location of the KAV SDK directory, plugin directory, and libraries directory, respectively.The kavicapd.sh shell script will export the variables when it is executed.
Page top