Configuring the kuma-kont utility involves the following steps:
Creating the kuma-kont-config.yaml configuration file
To create the kuma-kont-config.yaml configuration file:
cd kuma-ansible-installer/roles/kuma/files
tar -xvf kuma-kont.tar
cd kuma-kont
cp kuma-kont-config-template.yaml kuma-kont-config.yaml
sudo chown <
user name
>:<
group
> kuma-kont-config.yaml
sudo chmod 600 kuma-kont-config.yaml
Replace <user name> with the operating system user name that the service will use.
Specify the values of the following settings:
An example of configuration is given in the kuma-kont-config-template.yaml file.
The configuration file is created.
Creating the service
To create the kuma-kont service:
sudo chown <
user name
>:<
group
> <
path to executable file
>
sudo chmod 700 <
path to executable file
>
[Unit]
Description=Connector Kontinent 3.9
After=network.target
[Service]
User=<
user name
>
ExecStart=<
path to executable file
> --config <
path to configuration file
>
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
Replace <user name> with the user name of the operating system user that the service will use.
Specify the path to the kuma-kont executable file in the ExecStart field.
For example, if the kuma-kont file is located in the /usr/bin/ directory, leave the default value.
Specify the path to the kuma-kont-config.yaml configuration file in the ExecStart field. For example, if the kuma-kont-config.yaml file is located in the /path/to/ directory, specify that path.
Example kuma-kont.service file
[Unit]
Description=Continent Service
After=network.target
[Service]
User=user-example
ExecStart=./usr/bin/kuma-kont --config /path/to/kuma-kont-config.yaml
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable kuma-kont
The kuma-kont utility will be started as a service at system startup.
Page top