Deleting a Configuration

How to:

If you add a configuration to iWay Service Manager and later choose to delete it, you must:

  1. Stop the service you created for this configuration.
  2. Delete the service.
  3. Delete the configuration from the console.

Note: Uninstalling iWay Service Manager removes only the configuration and services installed.


Top of page

x
Procedure: How to Stop a Service on Windows

To stop a service on Windows:

  1. From the Start menu, select Start, Settings, Control Panel, Administrative Tools, and then Services.

    The Services window opens.

  2. Scroll down to display the iWay Service Manager services, as shown in the following image.

  3. Right-click the service you created, for example, iWay Service Manager - TestConfig, and then select Stop.

    The service is stopped.

    Your next task is to delete the Windows service. For more information, see How to Delete a Windows Service.


Top of page

x
Procedure: How to Stop a Service on a non-Windows Platform

To stop a service on a platform other than Windows:

  1. Locate the default shutdown file, which is supplied for the base configuration, in the iWay60/bin directory.

    On UNIX, this file is called:

    stopservice.sh

    On other non-Windows platforms, the name may vary.

  2. Create a copy of this shutdown file for your service.
  3. Edit the copy for your service in an editor and navigate to the following section in the file to replace base with the name of your configuration:
    #!/bin/sh 
    #####################################################################
    #
    # Init
    # Setup global variables and signal handling
    #
    # Edit following lines to point to install dir, user ID, and config"
    IWAY60=/WorkSource/iWay60/
    IWAYUSER=root
    IWAYCONFIG=base
  4. Navigate to the following section in the file and change the log file name, serviceShutdown.txt, to be unique to this service:
    cd $IWAY60/config/$IWAYCONFIG  
    if test `uname` = 'OS400'; then
    	java $REMDBG -cp $CLASSPATH -DIWAY60=$IWAY60
    com.ibi.service.edaqmServiceShutdown -c $IWAYCONFIG >>
    $IWAY60/serviceShutdown.txt &
    elif test `uname` = 'OS/390'; then	java $REMDBG -cp $CLASSPATH -DIWAY60=$IWAY60
    com.ibi.service.edaqmServiceShutdown -c $IWAYCONFIG >>
    $IWAY60/serviceShutdown.txt &
    else	su $IWAYUSER -c "java $REMDBG -cp $CLASSPATH -DIWAY60=$IWAY60
    com.ibi.service.edaqmServiceShutdown -c $IWAYCONFIG >>
    $IWAY60/serviceShutdown.txt &"
    fi
  5. Save your changes.
  6. Execute the shutdown file for your service.

    The service is stopped.

    Your next task is to delete the service.


Top of page

x
Procedure: How to Delete a Windows Service

To delete a service that you created to start a configuration:

  1. Open a Command Prompt window and navigate to the iWay home bin directory, for example, on Windows, if iWay is installed in C:\Program Files\iWay60, go to:
    C:\Program Files\iWay60\bin
  2. At the command prompt, type:
    iwsrv config_name -s remove

    where:

    config_name

    Is the name of the configuration for which you are deleting a service.

    A message appears, indicating that the service was deleted successfully.

    Your next task is to delete the configuration from the console.


Top of page

x
Procedure: How to Delete a Configuration From the Console

To delete a configuration from the console:

  1. In the top pane, click Managed Servers.

    The Server Management pane opens.

  2. Locate the configuration in the Configurations section and select its check box to the left.
  3. Click Delete.

    A confirmation box opens.

  4. Click OK.

    The configuration is deleted.


iWay Software