...
Warning | ||
---|---|---|
| ||
|
- Setup your CHARON virtual machine as a service. To do so, refer to the corresponding documentation.
Example: Running CHARON-AXP for Windows - Running as system service - Configure the Recovery settings either from the GUI or from the command line as explained below
...
Info | |
---|---|
Restarting CHARON emulator does not mean booting the OpenVMS or Tru64 virtual system. You will need to setup the flags at SRM level for autoboot. Example:
|
Configuration using Service manager / GUI
- Open the Windows service manager: click Start, click in the Start Search box, type services.msc, and then press ENTER
- Locate the service you've created using the CHARON service manager utility (or using the CHARON Virtual Machines Manager in case of CHARON versions above 4.7). Double click on the service to open the properties window and select the Recovery tab:
- Configure the service manager to restart the CHARON service after a specified amount of time
Example:
...
Info |
---|
In the simple example below, we will setup the recovery options to:
The specified timers will have to be customized according to your configuration |
...
- Open "
cmd.exe
" from the "Start" menu in "Run as Administrator" mode Execute the following commands:
Div class commandline C:\Windows\system32>sc failure myds20 reset= 600 actions= restart/30000/run/1000/run/1000
C:\Windows\system32>sc failure myds20 command= "C:\Windows\System32\msg.exe * \"myds20 virtual machine failed after restart attempt\""
C:\Windows\system32>sc qfailure myds20
[SC] QueryServiceConfig2 SUCCESS
SERVICE_NAME: myds20
RESET_PERIOD (in seconds) : 600
REBOOT_MESSAGE :
COMMAND_LINE : C:\Windows\System32\msg.exe *
"myds20 virtual machine failed after restart attempt
"FAILURE_ACTIONS : RESTART -- Delay = 30000 milliseconds.
RUN PROCESS -- Delay = 1000 milliseconds.
RUN PROCESS -- Delay = 1000 milliseconds.
White space is mandatory after the "parameter=" option
The Windows service manager may not reflect the specified values. Example: 10 minutes for reset failure count will appear as 0 in the GUI
The "reset=" value is expressed in seconds
The "actions=" timer values are expressed in milliseconds
...