Restart after Error

The ASR is configured, by the systemd command, to restart automatically after 15 minutes, in case of an error. This time has been set to make sure the licenses have been cleared by timeout on the license server, since the session timeout on the license server is usually 10 minutes.

To verify the configured automatic restart time, access the machine where the CPQD ASR is installed and run:

sudo systemctl show --property=RestartUSec asr-server

See the following example:

$ sudo systemctl show --property=RestartUSec asr-server

RestartUSec=15min

To change the current value, run the following command:

$ sudo systemctl edit asr-server

As a result, a text editor (probably the Linux ‘vi editor <https://pt.wikipedia.org/wiki/Vi>‘) will be launched. Add the following segment. In the example, the configured time is 12 minutes, which you can change to the value of your choice.

[Service]

RestartSec=12min

Warning

The name of the property in the systemctl show command is RestartUSec, while that of the systemctl edit command is RestartSec. Although the names are different, the property is the same. The names should be used like so: (command systemctl show).

Verify if the change has been saved, as in the following example:

$ sudo systemctl show --property=RestartUSec asr-server

RestartUSec=12min

To return to the default configuration, remove the added entry or comment it with #:

[Service]

# RestartSec=12min

To disable automatic restarts, run sudo systemctl edit asr-server and add the following segment:

[Service]

Restart=no