You can manage Feed Service with a script.
The %service_dir%/etc/init.d/kl_feed_service
file is a script for managing Feed Service.
Command-line options
The script supports the following command-line options:
start
—Starts the service.The script prints the information about whether this operation succeeded or failed.
Note that Feed Service begins to receive events only after it has loaded the feeds into memory and has sent the KL_ALERT_ServiceStarted
event to the event target software.
stop
—Stops the service.The script prints the information about whether this operation succeeded or failed.
reloaddb
—Reload the feeds.The script prints the information about whether this operation succeeded or failed.
status
—Prints the information about the status of Feed Service.restart
—Restarts the service: stops it and starts it again.reloadconfig
—Reloads the configuration file of Feed Service.You have to reload the configuration file or restart Feed Service after you edit the configuration file for the changes to take effect. If you edit the configuration file by using CyberTrace Web, reloading or restarting is not necessary. For more information about applying changes made to the configuration file, see section "About the configuration file (Feed Service)", subsection "Applying changes made to the configuration file".
You can use only one option at a time.
The script can also be launched without parameters. In this case, it prints the list of the available options and their descriptions.
Script parameters
You can edit the script to modify the values of various parameters. The parameters are described in the following table.
Parameters of the script
Parameter |
Preset value |
Description |
CONFILE |
|
Path to the configuration file. You can use absolute or relative paths. If a relative path is specified, it is calculated relative to the Feed Service binary file. |
PIDFILE |
|
Name of the file that contains the process identifier of the running service. You can use absolute or relative paths. If a relative path is specified, it is calculated relative to the Feed Service binary file. |
USE_WATCHDOG |
|
Specifies whether Feed Service must be run in watchdog mode.
|
DAEMON |
|
Path to the service binary file relative to |
PROGNAME |
|
The name of the service binary file to be used in informational messages. |
Example
The following command starts Feed Service:
|