Managing Feed Service using the script (Linux)

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:

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

../etc/kl_feed_service.conf

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

kl_feed_service.pid

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

1

Specifies whether Feed Service must be run in watchdog mode.

  • 0—Watchdog mode is not used.
  • 1—Watchdog mode is used.

DAEMON

"./kl_feed_service"

Path to the service binary file relative to %service_dir%/bin.

PROGNAME

kl_feed_service

The name of the service binary file to be used in informational messages.

Example

The following command starts Feed Service:

/etc/init.d/kl_feed_service start

Page top