Anchor | ||||
---|---|---|---|---|
|
Include Page | ||||
---|---|---|---|---|
|
Table of contents
Table of Contents | ||||
---|---|---|---|---|
|
Description
In case of unrequested CHARON virtual machine stop, it is possible, using the Windows Service Recovery system, to restart CHARON emulator automatically
Step-by-step guide
Warning | ||
---|---|---|
| ||
|
...
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. 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:
...
Issue: the counter cannot be less than 1 day using the GUI, zero means always use the "First failure" defined action. If you want to specify less than one day, use the command line settings as explained in the next chapter
Configuration using sc / command line
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
Links
- Microsoft Technet / Set up Recovery Actions to Take Place When a Service Fails: https://technet.microsoft.com/en-us/library/cc753662.aspx
- Microsoft Technet / sc failure: https://technet.microsoft.com/en-us/library/cc742019.aspx
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Readers/approval
This article follows a request we received from a customer (Volker...)
- Your approval is needed for this document - Gregory Reut
- Your approval is needed for this document - Bruno Miretti (Deactivated)
- Your approval is needed for this document Bruno - Tests & Demo User (Unlicensed)
- Your approval is needed for this document - Kirill Nikolaev (Unlicensed)
- Your approval is needed for this document - Tony DiFruscia (Unlicensed)
- Your approval is needed for this document - Darrell Wright (Unlicensed)
...
Include Page KBCOMMON:KB-GoToTop KBCOMMON:KB-GoToTop