Back

Topic

[KB1072]PcVue as a service – service doesn’t restart PcVue after crash

Tags: PcVue as a service

4 years ago
By LM
Options
Print
Applies to:

PcVue 11.2 onwards


Summary:

By default, the SV Core Daemon service will terminate gracefully if sv32.exe process terminates intentionally or unexpectedly. This article explains how to configure it to restart PcVue in such cases.


Details:

This behavior is configurable with the SV Core Management Console, through the ‘Upon process exit’ property from the General Properties tab:
Upon process exit
‘Upon process exit’ options are the following, and you have to select the last one:
– Disabled (no report) – Process monitoring is disabled, and no reporting is performed.
– Report the termination – The failure will be noted in the Windows Event Log and also visible in the Log Monitor.
– Stop the service – The SV Core Daemon service will terminate gracefully. This is the default option.
– Terminate the service (hard exit) – The SV Core Daemon service will hard exit. This allows control to be handed back to the Service Control Manager and for a restart to be performed by it in preference. See the Recovery tab of the Service Control Manager:

SV Core Deamon Recovery

 

If sv32.exe crashes or is stopped by program, then HDS.exe will be terminated too and next recovery action will be applied. If ‘Reset fail count after:’ option is set to 0 then first failure action will be repeated everytime the service will be terminated.

Note that this does not concern HDS.exe process, only sv32.exe failure will terminate the service. In case there is an issue with HDS.exe it will trigger some system variables in the PcVue application, it is possible to catch these issues and decide to stop PcVue (sv32.exe) in order to restart the project automatically. SYSTEM scada basic instruction allows to simply stop the project:
SYSTEM(“EXIT”);



Created on: 16 Jul 2020 Last update: 30 May 2024