Skip to content

Systemd support for XRT

This page describes how XRT can be run as a systemd service. If the target machine (that is, the one on which XRT is to be run) has systemd installed, the package manager installs XRT as a systemd service on Linux systems.

When XRT is installed, the service becomes available, but is disabled by default.

The service can be started or stopped manually using standard systemctl commands.

sudo systemctl start xrt
sudo systemctl stop xrt
sudo systemctl restart xrt
systemctl status xrt

To run XRT successfully, a license file and a valid configuration are required. By default, the configuration directory is set to CONFIG_FOLDER="${XRT_HOME}/deployment/config" and the license file path is set to XRT_LICENSE_FILE="${CONFIG_FOLDER}/license.json", where ${XRT_HOME} is /opt/iotech/xrt/<ver>, the default xrt install directory.

Note

xrt-start.sh script installed in ${XRT_HOME}/systemd directory sets the required environment variables.

Copy the license file and the configuration folder to these set directory or update the script to set the path appropriately. Restart and check the service status to verify.

In case of any error, the service automatically restarts itself.

When the XRT package is uninstalled, the systemd service will also be removed.

If systemd is not available on the target system, the installer displays a message that informs the user that the package manager will skip the installation or removal of the service.

Back to top