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:
- If you use Security-Enhanced Linux (SELinux) in
enforcing
mode, change the mode before proceeding:- Open
/etc/selinux/config
for editing. - Locate the line that contains the
SELINUX
variable:SELINUX=enforcing
- Set the value of the
SELINUX
variable topermissive
ordisabled:
SELINUX=permissive
- Save and close the
/etc/selinux/config
configuration file.
- Open
- 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
. - If necessary, edit the init script.
- Add the
kavhttpd
service to the service startup list. The exact method may vary depending on the operating system. - Verify that
kavhttpd
has been added successfully. - 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... |