Running Kaspersky Scan Engine in HTTP mode with init script (Linux)

For Linux systems only.

The init script is located at %distr_kit%/etc/init.d/kavhttpd. You can run it from the command line to manage Kaspersky Scan Engine.

Starting Kaspersky Scan Engine automatically

To start Kaspersky Scan Engine automatically, add kavhttpd to the service startup list.

To add kavhttpd to the service startup list:

  1. If you use Security-Enhanced Linux (SELinux) in enforcing mode, change the mode before proceeding:
    1. Open /etc/selinux/config for editing.
    2. Locate the line that contains the SELINUX variable:

      SELINUX=enforcing

    3. Set the value of the SELINUX variable to permissive or disabled:

      SELINUX=permissive

    4. Save and close the /etc/selinux/config configuration file.
  2. Copy the HTTP mode init script to the directory that contains init scripts. The location of this directory may vary depending on the operating system, but usually it is /etc/init.d.
  3. If necessary, edit the init script.
  4. Add the kavhttpd service to the service startup list. The exact method may vary depending on the operating system.
  5. Verify that kavhttpd has been added successfully.
  6. Restart the system for the configuration to take effect.

Starting Kaspersky Scan Engine

To start Kaspersky Scan Engine, run the init script with the start parameter, as follows:

/etc/init.d/kavhttpd start

Starting kavhttpd: [ OK ]

After Kaspersky Scan Engine is started, it listens for incoming requests from client applications.

Stopping Kaspersky Scan Engine

To stop Kaspersky Scan Engine, run the init script with the stop parameter:

/etc/init.d/kavhttpd stop

Stopping kavhttpd: [ OK ]

Restarting Kaspersky Scan Engine

To restart Kaspersky Scan Engine, run the init script with the restart parameter:

/etc/init.d/kavhttpd restart

Stopping kavhttpd: [ OK ]

Starting kavhttpd: [ OK ]

Reloading the anti-virus database used by Kaspersky Scan Engine

To reload the anti-virus database used by Kaspersky Scan Engine, run the init script with the reloaddb parameter.

/etc/init.d/kavhttpd reloaddb

Reload databases kavhttpd: [ OK ]

Updating the anti-virus database used by Kaspersky Scan Engine

To update the anti-virus database used by Kaspersky Scan Engine, run the init script with the updatedb parameter.

/etc/init.d/kavhttpd updatedb

Update databases kavhttpd: [ OK ]

Getting the Kaspersky Scan Engine status

To get the status of Kaspersky Scan Engine, run the init script with the status parameter.

/etc/init.d/kavhttpd status

kavhttpd (pid 12892) is running...

Page top