Anchor | ||||
---|---|---|---|---|
|
Include Page | ||||
---|---|---|---|---|
|
...
Use this option to edit the stop script that will be executed at service shutdown upon manual request or during the Charon Linux server shutdown procedure.
The script is unique and uses the configuration file (full name) to select commands to be executed at guest shutdown (selected by "case in...").
...
Basic knowledge of shell programming is needed to implement the clean shutdown / stop script.
Method | Comments |
---|---|
expect | Requires you pass user and password to the script so that it can connect to the OPA0 console via "
This method is useful if the virtual machine has no telnet connection available. Important notes:
|
rsh | Requires:
|
ssh | Requires:
|
Info | ||
---|---|---|
| ||
If your application and server needs time to shutdown, it could be necessary to give more time in the service definition to prevent from the service stop procedure to fail due to timeout. To do so, open the " Example:
More information can be found using the " |
...
- Options 1 to 5 are explanations on how to setup and prepare the virtual machine and the Charon Linux server (if necessary) to use the three available methods. You'll find there all the details to setup a proxy for rsh, a key pair for ssh and the necessary firewall settings if needed.
- Option 6 edits the script. This script in a form of "case in <configuration filename> do ..."
- Option 7 is used to test the script. Use with caution on production machines.
Info |
---|
You'll find in options 1 to 5 all the details to setup the remote connection: packages to install, proxy settings for rsh, key pair definition for ssh (password and passphrase free), the necessary firewall settings if needed, etc... |
Include Page | ||||
---|---|---|---|---|
|
Common stop script explanation
...
When the script is initialized using option 6 or when a new virtual machine is added, the following lines are added:
|
|
One of the blue colored lines above has to be uncommented depending on the method chosen. Other lines can remain in the script or can be deleted.
The values between the < and > signs have to be filled manually.
Stop script content example:
The editor defined in the Preferences is used to edit the script.
Stop script execution example with "rsh":
...
To create the script, the following commands were executed to copy the provided example to the one that will be used:
|
Example file provided (contains example for Tru64 and OpenVMS):
...