Changing variables in the klScanEngineUI unit file (Linux)

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:

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'

Page top