Automatically initializing HCL Workload Automation instances

On UNIX systems, you can automatically initialize HCL Workload Automation instances during operating system startup.

About this task

On UNIX systems, you can ensure that your HCL Workload Automation instances are automatically initialized during operating system startup.

For AIX®, Solaris, HP-UX and some Linux operating systems that use a traditional init like System V, you can do this by adding an HCL Workload Automation service to the init process of your operating system. Use the sample start script iwa_init_<installation user> located in TWA_home/TWS/config and add it to the appropriate run level after customizing it as necessary.

For some Linux distributions that use systemd as the default initialization system, such as RedHat Enterprise Linux v7.0 and SUSE Linux Enterprise Server V12, a sample service file, iwa.service, is provided located in the path TWA_home/TWS/config that is already configured to support the automatic initialization of HCL Workload Automation instances at startup.

Perform the following steps:
For UNIX operating systems that use the traditional init system such as System V :
Configure the script and then register the service.
  1. Create a copy of the iwa_init_<installation user> script based on your requirements. Provide the following information, depending on the operating system you use:
    Required-Start
    On Linux systems, specify the precondition services
    Default-Start
    On Linux systems, specify the required runlevels. For example, specify runlevels 2, 3, and 5.
  2. Browse to the appropriate system-dependent folder, as follows:
    Supported Linux operating systems
    Save the script in the /etc/init.d folder and register the service using the insserv -v script_name command.
    Supported AIX® operating systems
    Save the script to the appropriate rcrunlevel.d folder. Rename the script according to the runlevel script definition. For example, Ssequence_numberservice_name, as in S10iwa_init_<installation user>.
    Supported Solaris operating systems
    Save the script in the /etc/init.d folder and link the script to an appropriate file in the rcrunlevel.d folder. For example, Ssequence_numberservice_name, as in S10tws860ma.
    Supported HP-UX operating systems
    Save the script in the /sbin/init.d folder and link the script to an appropriate file in the rcrunlevel.d folder. For example, Ssequence_numberservice_name, as in S10tws860ma.
Note: If you run this script on a master domain manager or on a backup master domain manager, the script has no effect on the database.
For more information about the inittab, init.d, insserv, and init commands, see the reference documentation for your operating system.
For Linux distributions that use systemd as the default initialization system:
This procedure uses the iwa.service sample service that is already customized to automatically initialize HCL Workload Automation instances at system startup.
  1. Copy the sample service provided, iwa.service, located in the path TWA_home/TWS/config to the following path on the Linux system /etc/systemd/system/
  2. To make systemd aware of the service, invoke the systemctl daemon-reload command.
  3. Start the service submitting the following command:
    systemctl start iwa.service
  4. Verify the status by submitting the following command:
    systemctl status iwa.service
  5. Stop the service by submitting the following command:
    systemctl stop iwa.service
  6. Finally, enable the service so that it is activated by default when the system boots by submitting the following command:
    systemctl enable iwa.service