5. Automatic Startup

In this section we will show how the RTOS and an application will be started automatically (RT-Linux only) after the Hypervisor has finished booting.

5.1. Automatic RTOS start

To automatically start RT-Linux after the hypervisor finished booting, please adjust the file

gedit /hv/lx/rtos_start.sh

and uncomment the line ./lx.sh.

Hint

The rtos_start.sh script will be automatically started via the systemd service controlled via /etc/systemd/system/hv_rtos_start.service.
This service can be enabled (default) or disabled:
sudo systemctl enable /hv/services/hv_rtos_start.service
sudo systemctl disable hv_rtos_start

5.2. Autostart RT-Linux Applications

Automatic startup of RT-Linux applications is configured in /hv/lx/linux.config (section [Rtos\Autostart\1]). By default automatic start is enabled.

If this autostart section is active, the autostart script /hv/lx/rtfiles/autostart.sh will be executed after RT-Linux has booted.

You may adjust both files according to your needs.