Changing variables in the HTTP mode 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/kavhttpd.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/kavhttpd.pid.

The following example shows how this variable is set in the unit file:

PIDFile=/var/run/kavhttpd.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 kavhttpd startup

You must change paths in the command executed on kavhttpd startup if you put the kavhttpd executable file or the HTTP mode 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 from /var/run/kavhttpd.pid.

The following example shows how this command is set in the unit file:

ExecStart=/bin/sh -c 'cd ${SDKPATH}/bin; ./kavhttpd -c /etc/kavhttpd.xml -p /var/run/kavhttpd.pid'

Page top