Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: minor correction

Anchor
TOC
TOC
Include Page
KBCOMMON:KB-CSSstyle
KBCOMMON:KB-CSSstyle

...

Info
titleNote for Red Hat Enterprise Linux 7.x and CentOS 7.x

If your application and server needs need 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 "Manage 'systemd' services" option and edit the service configuration file. You can then add the TimeoutStopSec= parameter in the Service section.

Example:

[Service]

...

TimeoutStopSec=3min

(info) More information can be found using the "# man systemd.service" command on your Linux server

...

When the script is initialized using option 6 or when a new virtual machine is added, the following lines are added:

...

case "$1"

in

  <configuration file>)

    #-- Uncomment and complete one of the following lines:

    #\$#${CHARONDIR}/utils/charon_gstop_expect \$1 \$2 root <password> "<prompt>" <TRU64/VMS>

    #\$#${CHARONDIR}/utils/charon_gstop_rsh \$1 \$2 <hostname> <TRU64/VMS>

    #\$#${CHARONDIR}/utils/charon_gstop_ssh \$1 \$2 <hostname> <TRU64/VMS>

    #/<path>/<myscript>

  ;;

...

esac

...

(lightbulb) In this example, we use "ssh" to display the guest "uptime" and the result of the "uname -nr" command (name of the node + release number of the operating system).

(warning) The last 2 lines containing the RETVAL variable are mandatory

...

# cp /opt/charon/utils/charon_gstart.chkrun.example /opt/charon/utils/charon_gstart.chkrun

# vim /opt/charon/utils/charon_gstart.chkrun

# chmod 744 /opt/charon/utils/charon_gstart.chkrun

...

Example file provided (contains example for Tru64 and OpenVMS):

...