Stopping a Service

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.

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 Remove a Windows Service.

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 iWay8/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"
    IWAY8=/WorkSource/iWay8/
    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 $IWAY8/config/$IWAYCONFIG  
    if test 'uname' = 'OS400'; then
    	java $REMDBG -cp $CLASSPATH -DIWAY8=$IWAY8
    com.ibi.service.edaqmServiceShutdown -c $IWAYCONFIG >>
    $IWAY8/serviceShutdown.txt &
    elif test 'uname' = 'OS/390'; then	java $REMDBG -cp $CLASSPATH -DIWAY8=$IWAY8
    com.ibi.service.edaqmServiceShutdown -c $IWAYCONFIG >>
    $IWAY8/serviceShutdown.txt &
    else	su $IWAYUSER -c "java $REMDBG -cp $CLASSPATH -DIWAY8=$IWAY8
    com.ibi.service.edaqmServiceShutdown -c $IWAYCONFIG >>
    $IWAY8/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.