Running Kaspersky Scan Engine in HTTP mode with systemd unit file (Linux)

March 5, 2024

ID 184956

For Linux systems only.

You can run the Kaspersky Scan Engine in HTTP mode by using the kavhttpd.service unit file for systemd. The unit file allows you to add the kavhttpd service to the service startup list and to manage the service manually from the command line.

This section assumes that you want to add the kavhttpd service for all users. For information on how to add and manage a service under a specific user, please see the official documentation for systemd and systemctl.

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. Place the kavhttpd.service unit file in the /etc/systemd/system/ directory.
  2. If necessary, edit the unit file.
  3. Reload systemd by running the following command:

    systemctl daemon-reload

  4. Make sure that the kavhttpd.service unit file is installed by running the following command:

    systemctl list-unit-files

  5. Enable kavhttpd to launch when the system starts by running the following command:

    systemctl enable kavhttpd.service

Remove Kaspersky Scan Engine from the service startup list

To remove kavhttpd from the service startup list, run the following command:

systemctl disable kavhttpd.service

Managing Kaspersky Scan Engine with systemd from the terminal

To start kavhttpd without rebooting the computer, run the following command:

systemctl start kavhttpd

After this command is executed, the script prints the [OK] message and immediately returns control to the terminal, but it will take the kavhttpd service some time to start.

To stop kavhttpd without rebooting the computer, run the following command:

systemctl stop kavhttpd

To reload the anti-virus database, run the following command:

systemctl reload kavhttpd

Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.