Running the klScanEngineUI service with systemd unit file (Linux)

March 5, 2024

ID 192471

For Linux systems only.

You can run the Kaspersky Scan Engine GUI service by using the klScanEngineUI.service unit file for systemd. The unit file allows you to add the klScanEngineUI 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 klScanEngineUI 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 klScanEngineUI to the service startup list.

To add klScanEngineUI to the service startup list:

  1. Place the klScanEngineUI.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 klScanEngineUI.service unit file is installed by running the following command:

    systemctl list-unit-files

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

    systemctl enable klScanEngineUI.service

Remove Kaspersky Scan Engine from the service startup list

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

systemctl disable klScanEngineUI.service

Managing Kaspersky Scan Engine with systemd from the terminal

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

systemctl start klScanEngineUI

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

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

systemctl stop klScanEngineUI

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.