Changing variables in the klScanEngineUI unit file (Linux)
April 24, 2024
ID 192481
For Linux systems only.
You can configure Kaspersky Scan Engine by changing one or more variables in its unit file, %distr_kit%/etc/klScanEngineUI.service
.
Changing the path to the Kaspersky Scan Engine PID file
You can change this variable if you want to create a PID file of Kaspersky Scan Engine in a directory other than /var/run/klScanEngineUI.pid
.
The following example shows how this variable is set in the unit file:
PIDFile=/var/run/klScanEngineUI.pid |
Changing environment variables
You must change these environment variables if Kaspersky Scan Engine is located in a directory other than /opt/kaspersky/ScanEngine
.
The unit file uses the following environment variables:
SDKPATH
—Specifies the directory where Kaspersky Scan Engine is located. The following example shows how this variable is set in the unit file:Environment=SDKPATH=/opt/kaspersky/ScanEngine
KL_PLUGINS_PATH
—Specifies the path to the directory containing the PPL plug-in files used by Kaspersky Scan Engine. The following example shows how this variable is set in the unit file:Environment=KL_PLUGINS_PATH=/ppl
LD_LIBRARY_PATH
—Specifies the path to the directory containing the shared libraries used by Kaspersky Scan Engine. The following block shows how this variable is set in the unit file:Environment=LD_LIBRARY_PATH=/lib:/ppl
Changing paths in the command executed on klScanEngineUI startup
You must change paths in the command executed on klScanEngineUI startup if you put the klScanEngineUI
executable file or the klScanEngineUI configuration file in directories different from the ones specified in the unit file, or if you want to create a PID file of Kaspersky Scan Engine in a directory other than /var/run/klScanEngineUI.pid
.
The following example shows how this command is set in the unit file:
ExecStart=/bin/sh -c 'cd ${SDKPATH}/bin; ./klScanEngineUI -c /etc/klScanEngineUI.xml -p /var/run/klScanEngineUI.pid' |