Skip to content

Systemd support for Edge Xrt

This page describes how Edge Xrt can be run as a systemd service. If the target machine (that is, the one on which Edge Xrt is to be run) has systemd installed, the package manager installs Edge 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 Edge Xrt successfully, a license file and a valid configuration are required. By default, the configuration path is set to "${XRT_INSTALL_DIR}/deployment/config", and the license file path is set to XRT_LICENSE_FILE="${XRT_INSTALL_DIR}/license.json", where ${XRT_INSTALL_DIR} is /opt/iotech/xrt/<ver>, the default Xrt install directory.

Note script installed in ${XRT_INSTALL_DIR}/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.