Start or Stop the Uniface Router on iSeries

You start the Uniface Router by starting the subsystem (if you chose to create a subsystem during installation), or by calling STARTUP,.

If you created a subsystem during installation, there will be a subsystem description in your installation library. The names of library and subsystem normally have the form UNIFVersionNumber, for example, UNIF10302, but you may have chosen a different name.

To start the Uniface Router:

  • Using the subsystem, enter the following command:

    STRSBS LibraryName/SubsystemName

    For example, assuming the library is UNIFxxxx and the subsystem name is also UNIFxxxx:

    STRSBS UNIFxxxx/UNIFxxxx

    This starts the subsystem, which has an autostart job that runs the STARTUPprogram. STARTUP, in its turn, starts the UROUTER using the TCP port number and user profile that you specified during installation.

  • If no subsystem was created, enter the following command:

    CALL LibraryName/STARTUP

    For example:

    CALL UNIFxxxx/STARTUP

To stop the Uniface Router:

  • If you have created a subsystem, enter the following command:

    ENDSBS (UNIFxxxx) OPTION(*IMMED)
  • If you did not create a subsystem, enter the following command (assuming that UROUTER is listening to port 13001):

    CHGCURLIB UNIFxxxx
    CALL PGM(UROUTER) PARM('TCP:+13001' '/shut')

    Note:  You can also stop the UROUTER in this way if you have created a subsystem for it, but that will leave the subsystem running. In this case, restarting the UROUTER later on cannot be done by starting the subsystem, but must be done by running STARTUP.

Related Topics