Kendis as a Service for Linux

Sample Instructions for Ubuntu

Kendis Team avatar
Written by Kendis Team
Updated over a week ago

SAMPLE REFERENCE

Kendis as a service for Ubuntu.

Step: 1


Create a file with a path.

vi /etc/systemd/system/kendis.service

Step:2

Add the following contents. We suppose you have downloaded and extracted kendis-Linux on the root directory.

[Unit]

Description=kendis service

Documentation=https://help.kendis.io/


[Service]

Type=simple

User=root

Group=root

TimeoutStartSec=0

Restart=on-failure

RestartSec=30s

ExecStart=/kendis-server-linux-x86_64/bin/startup.sh

ExecStop=/kendis-server-linux-x86_64/bin/shutdown.sh



[Install]

WantedBy=multi-user.target

Please ensure startup.sh and shutdown.sh under the kendis Linux installation directory should have executable permissions.
โ€‹

Step: 3

3.a Start service with command.

systemctl start  kendis.service

3.b Stop service with command

systemctl stop  kendis.service

Step: 4

To enable the service to start on Linux startup, use the following command

systemctl enable kendis.service

Did this answer your question?