Autostop Directory

With the command vovautostop, on vovserver shutdown, scripts can be specified to execute automatically.

In UNIX, the scripts can be written in either C-shell or Tcl syntax.
Note: For the script to work in Windows, Tcl syntax must be used. Guidelines follow:
  • Create a directory named autostop in the server working directory.
  • For both UNIX and Windows:
    • Create a script with the suffix .tcl in the autostop directory.
  • For UNIX only, CSH scripts are also supported:
    • Create a script with the suffix .csh in the autostop directory.
    • Ensure the script has the appropriate executable permissions.

Each script in the autostop directory is called with one argument, which is the word stop. This argument is usually ignored in OEM scripts, but can be used to in custom scripts to enforce different behaviors between a manual call on the CLI versus an automated call by the vovserver.

Examples are available in the directory $VOVDIR/etc/autostop.

The vovautostop Command

The scripts are launched by the utility vovautostop. To repeat the execution of the autostop scripts, vovautostop can be executed from the command line.

vovautostop: Usage Message

    Execute the scripts in the *.swd/autostop directory.
    There are two types of scripts that get executed:
    1.  Scripts that match *.csh are executed directly (Unix only)
    2.  Scripts that match *.tcl are executed by vovsh.

    The scripts are executed in alphabetical order,
    in the background, and
    with a 5s delay between successive scripts.

    This utility is normally invoked by vovserver upon shutdown.

    % vovautostop [OPTIONS] [optional directory spec]

   -v           Increase verbosity.
   -h           This usage message.

    % vovautostop